Skip to content

Commit

Permalink
Use string APPEND
Browse files Browse the repository at this point in the history
Fixes CMAKE_C?_FLAGS are not lists but strings daanx#191
  • Loading branch information
mjp41 committed Aug 8, 2023
1 parent 6e4bbc7 commit 297fe01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bench/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ PREPEND(barnes_sources barnes/ ${barnes_sources})
message(STATUS "${CMAKE_C_COMPILER_ID}")
if(CMAKE_C_COMPILER_ID MATCHES "AppleClang|Clang|GNU")
set(FLAGS " -w -Wno-implicit-function-declaration -Wno-implicit-int -Wno-int-conversion")
list(APPEND CMAKE_C_FLAGS ${FLAGS})
list(APPEND CMAKE_CXX_FLAGS ${FLAGS})
string(APPEND CMAKE_C_FLAGS ${FLAGS})
string(APPEND CMAKE_CXX_FLAGS ${FLAGS})
endif()

add_executable(cfrac ${cfrac_sources})
Expand Down

0 comments on commit 297fe01

Please sign in to comment.