Skip to content

Commit

Permalink
#510 ensure lower-case CMAKE build compare
Browse files Browse the repository at this point in the history
- The casing of the value can differ between environments.
  (Despite documentation claims of allowed values.)
  • Loading branch information
pnstickne committed May 30, 2020
1 parent 43e85aa commit 10bfe63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ include(cmake/check_compiler.cmake)

option(vt_fcontext_enabled "Build VT with fcontext (ULT) enabled" OFF)

if (CMAKE_BUILD_TYPE STREQUAL "Debug")
string(TOLOWER ${CMAKE_BUILD_TYPE} LOWERCASE_CMAKE_BUILD_TYPE)
if (LOWERCASE_CMAKE_BUILD_TYPE STREQUAL "debug")
option(vt_mpi_guards "Build VT with poison MPI calls: code invoked from VT callbacks cannot invoke MPI functions" ON)
else()
option(vt_mpi_guards "Build VT with poison MPI calls: code invoked from VT callbacks cannot invoke MPI functions" OFF)
Expand Down

0 comments on commit 10bfe63

Please sign in to comment.