File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -228,6 +228,7 @@ set_target_properties(HydroChrono
228228
229229target_link_libraries(HydroChrono
230230 PUBLIC
231+ ${CHRONO_LIBRARIES}
231232 ${CHRONO_TARGETS} # Chrono::Chrono_core;Chrono::Chrono_irrlicht;...
232233 $<$<TARGET_EXISTS :Eigen3 ::Eigen >:Eigen3 ::Eigen >
233234 PRIVATE
@@ -366,4 +367,8 @@ export(
366367)
367368
368369# Set build type to Release but enable debug symbols
369- set(CMAKE_CXX_FLAGS_RELEASE " ${CMAKE_CXX_FLAGS_RELEASE} /Zi /O2 ")
370+ if(MSVC)
371+ set(CMAKE_CXX_FLAGS_RELEASE " ${CMAKE_CXX_FLAGS_RELEASE} /Zi /O2 ")
372+ else()
373+ set(CMAKE_CXX_FLAGS_RELEASE " ${CMAKE_CXX_FLAGS_RELEASE} -g -O2 ")
374+ endif()
Original file line number Diff line number Diff line change 2727#include < cstdlib>
2828#include < string>
2929#include < sstream>
30+ #include < algorithm>
3031
3132#ifdef _WIN32
3233#include < windows.h>
You can’t perform that action at this time.
0 commit comments