Skip to content

Commit

Permalink
build: quote cmake macro arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Dubtsov authored and basargin committed Feb 13, 2019
1 parent 9ccd93a commit 3e4f87f
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 3e4f87f

Please sign in to comment.