Skip to content

Commit

Permalink
Merge pull request #33 from green-br/test-compiler-options
Browse files Browse the repository at this point in the history
Fix logic to use ${BUILD_TYPE}_FLAGS
  • Loading branch information
tom91136 authored Aug 22, 2024
2 parents 2b53fa8 + c241d19 commit d838767
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ message(STATUS "Default ${CMAKE_BUILD_TYPE} flags are `${DEFAULT_${BUILD_TYPE}_F
# setup common build flag defaults if there are no overrides
if (NOT DEFINED ${BUILD_TYPE}_FLAGS)
set(ACTUAL_${BUILD_TYPE}_FLAGS ${DEFAULT_${BUILD_TYPE}_FLAGS})
elseif ()
else ()
set(ACTUAL_${BUILD_TYPE}_FLAGS ${${BUILD_TYPE}_FLAGS})
endif ()

Expand Down Expand Up @@ -291,4 +291,4 @@ endif ()

set_target_properties(${EXE_NAME} PROPERTIES OUTPUT_NAME "${BIN_NAME}")

install(TARGETS ${EXE_NAME} DESTINATION bin)
install(TARGETS ${EXE_NAME} DESTINATION bin)

0 comments on commit d838767

Please sign in to comment.