Skip to content

Commit 7600ba8

Browse files
authored
Merge pull request #26 from tfhe/sc/default_build_type
sets default build type
2 parents 2ce219a + d676095 commit 7600ba8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ message(STATUS "Compiling spqlios-fft version: ${SPQLIOS_VERSION_MAJOR}.${SPQLIO
1515
set(WARNING_PARANOID ON CACHE BOOL "Treat all warnings as errors")
1616
set(ENABLE_TESTING ON CACHE BOOL "Compiles unittests and integration tests")
1717

18+
if (NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "")
19+
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Build type: Release or Debug" FORCE)
20+
endif()
21+
message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")
22+
1823
if (WARNING_PARANOID)
1924
add_compile_options(-Wall -Werror)
2025
endif()

0 commit comments

Comments
 (0)