Skip to content

Commit

Permalink
Handle no CMAKE_BUILD_TYPE in LTO
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoinePrv committed Aug 24, 2023
1 parent 5216b57 commit fb4ebb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/LinkTimeOptimization.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function(mamba_should_lto)
endif()

# Check if we are building in a release-like build
string(TOLOWER ${CMAKE_BUILD_TYPE} build_type_lower)
string(TOLOWER "${CMAKE_BUILD_TYPE}" build_type_lower)
set(valid_release_names "release" "relwithdebinfo")
if(NOT ${build_type_lower} IN_LIST valid_release_names)
set(${arg_RESULT} FALSE PARENT_SCOPE)
Expand Down

0 comments on commit fb4ebb8

Please sign in to comment.