Skip to content

Commit

Permalink
build: quote cmake macro arguments
Browse files Browse the repository at this point in the history
Fixes #405
  • Loading branch information
Roman Dubtsov committed Feb 11, 2019
1 parent e409951 commit b889089
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake/OpenMP.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ endif()

macro(forbid_link_compiler_omp_rt)
if (NOT WIN32)
set_if(OpenMP_C_FOUND CMAKE_C_CREATE_SHARED_LIBRARY_FORBIDDEN_FLAGS ${OpenMP_C_FLAGS})
set_if(OpenMP_CXX_FOUND CMAKE_CXX_CREATE_SHARED_LIBRARY_FORBIDDEN_FLAGS ${OpenMP_CXX_FLAGS})
set_if(OpenMP_C_FOUND
CMAKE_C_CREATE_SHARED_LIBRARY_FORBIDDEN_FLAGS
"${OpenMP_C_FLAGS}")
set_if(OpenMP_CXX_FOUND
CMAKE_CXX_CREATE_SHARED_LIBRARY_FORBIDDEN_FLAGS
"${OpenMP_CXX_FLAGS}")
if (NOT APPLE)
set (CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed")
endif()
Expand Down

0 comments on commit b889089

Please sign in to comment.