-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplified Windows build fix + some modernization of CMakeBuild files #16
base: master
Are you sure you want to change the base?
Conversation
- Setting C++11 and other compiler options without directly using compiler flags. - Using a target based approach (instead of directory based) for setting include directories.
CMakeLists.txt
Outdated
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-long-long") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wcast-align") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wsign-conversion") | ||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about CLANG?
libsgp4/CMakeLists.txt
Outdated
install( TARGETS sgp4s LIBRARY DESTINATION lib ) | ||
if(WIN32) | ||
install(TARGETS sgp4s | ||
RUNTIME DESTINATION lib) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain why the library requires the runtime location specified?
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-long-long") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wcast-align") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wsign-conversion") | ||
if(CMAKE_COMPILER_IS_GNUCC) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again is this compatible with clang?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I forgot about this. I will try to motivate the change request in the following days. (Just to mention: I actually use my branch of your code in a ground segment tool for satellites that will launch during 2020.)
Windows build fixes:
CMake modernization: