Skip to content

Commit c529f88

Browse files
authored
Fix missing CMAKE_BUILD_TYPE in 'cmake ..' scenario (#413)
Led to the following CMake error on 3rdparty deps build when `cmake ..` is only specified: ``` CMake Error: Invalid value used with --config ```
1 parent f29bcdd commit c529f88

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/configure.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ if (APPLE)
66
set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG TRUE)
77
endif(APPLE)
88

9+
if (NOT CMAKE_BUILD_TYPE)
10+
set(CMAKE_BUILD_TYPE "Release")
11+
endif(NOT CMAKE_BUILD_TYPE)
12+
913
set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG "${CMAKE_BINARY_DIR}/arch" )
1014
set( CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG "${CMAKE_BINARY_DIR}/lib" )
1115
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG "${CMAKE_BINARY_DIR}/bin" )

0 commit comments

Comments
 (0)