Skip to content

Commit

Permalink
Check build type
Browse files Browse the repository at this point in the history
  • Loading branch information
pasuka committed Aug 29, 2019
1 parent fedde9c commit bf3ca27
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@ endif()
if(MSVC)
add_compile_options(/W4 /WX)
else()
add_compile_options(-Wall -Wextra -Werror -pedantic $<$<CONFIG:RELEASE>:-O3>)
add_compile_options(-Wall -Wextra -Werror -pedantic $<$<CONFIG:Release>:-O3>)
endif()
if($<CONFIG:Release>)
message(STATUS "Enable Release mode")
endif()

enable_testing()
# include(CTest)
set(CMAKE_MODULE_PATH ${Catch2_SOURCE_DIR}/contrib ${CMAKE_MODULE_PATH})
Expand Down

0 comments on commit bf3ca27

Please sign in to comment.