Skip to content

Commit 39cd4b0

Browse files
authored
Merge pull request #83 from ellert/cmake-build-type
Do not hardcode the build type
2 parents 7b39883 + 615ace7 commit 39cd4b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ option( VALGRIND "Run select unit tests under valgrind" OFF )
77
option( ASAN "Build the plugin with the address sanitizer" OFF )
88

99
set( CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake )
10-
set( CMAKE_BUILD_TYPE Debug )
10+
if( "${CMAKE_BUILD_TYPE}" STREQUAL "" )
11+
set( CMAKE_BUILD_TYPE Debug )
12+
endif()
1113

1214
find_package( XRootD REQUIRED COMPONENTS UTILS SERVER )
1315
find_package( CURL REQUIRED )

0 commit comments

Comments
 (0)