Skip to content
Snippets Groups Projects
Commit d46515be authored by Martin Beseda's avatar Martin Beseda
Browse files

ENH: Using add_compile_definitions() instead of add_compile_options()

parent 51aa135c
No related branches found
No related tags found
No related merge requests found
...@@ -22,14 +22,13 @@ if(N_CORES GREATER 1) ...@@ -22,14 +22,13 @@ if(N_CORES GREATER 1)
endif() endif()
message("Build will be performed on ${N_CORES} cores.") message("Build will be performed on ${N_CORES} cores.")
#TODO rewrite to use add_compile_definitions
#TODO use just locally, where needed #TODO use just locally, where needed
if(WIN32) if(WIN32)
add_compile_options("/D BOOST_ALL_NO_LIB") add_compile_definitions(BOOST_ALL_NO_LIB NOMINMAX)
add_compile_options("/D NOMINMAX")
else() else()
add_compile_options(-DBOOST_TEST_DYN_LINK -DARMA_DONT_USE_WRAPPER) add_compile_definitions(BOOST_TEST_DYN_LINK)
endif() endif()
add_compile_definitions(ARMA_DONT_USE_WRAPPER)
#------------# #------------#
# Build type # # Build type #
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment