DigitalInBlue / Celero

C++ Benchmark Authoring Library/Framework
Other
824 stars 95 forks source link

Replace setting CMAKE_CXX_FLAGS with target_compile_options. #109

Closed ASxa86 closed 7 years ago

ASxa86 commented 7 years ago

Verified and tested to work on Clang-5.0, GCC-6.3, and Visual Studio 2017.

Note that target_compile_options must come after a call to add_executable/add_library. The same behavior as target_link_libraries.