You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, I want to express my gratitude in developing and maintaining this project.
I've noticed a little side effect of your CMake scripts; in particular, variables like CMAKE_CXX_FLAGS are set in chrono-config.cmake (maybe instead of using modern target_compile_options/target_link_options for each module?).
When in a CMakeLists.txt I use find_package(Chrono...), CMAKE_CXX_FLAGS gets overridden by the ones defined at Chrono build stage. This influences all the targets later defined: even if a target does NOT link against the Chrono target, it will be influenced by the fact that Chrono has been imported.
Is there something that could be done to solve this?
The text was updated successfully, but these errors were encountered:
First of all, I want to express my gratitude in developing and maintaining this project.
I've noticed a little side effect of your CMake scripts; in particular, variables like
CMAKE_CXX_FLAGS
are set inchrono-config.cmake
(maybe instead of using moderntarget_compile_options/target_link_options
for each module?).When in a
CMakeLists.txt
I usefind_package(Chrono...)
,CMAKE_CXX_FLAGS
gets overridden by the ones defined at Chrono build stage. This influences all the targets later defined: even if a target does NOT link against theChrono
target, it will be influenced by the fact thatChrono
has been imported.Is there something that could be done to solve this?
The text was updated successfully, but these errors were encountered: