Skip to content

Commit

Permalink
Merge 02b6aa3 into cherry-pick-backport-5845-to-branch-7-4-9fa69dbe-0…
Browse files Browse the repository at this point in the history
…98c-46dd-a39f-9cea22726f33 [skip ci]

skip-checks: true
  • Loading branch information
backporting[bot] committed Aug 23, 2019
2 parents 14ea24c + 02b6aa3 commit 14b579f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions mapscript/phpng/CMakeLists.txt
Expand Up @@ -62,6 +62,20 @@ if(WIN32)
SWIG_LINK_LIBRARIES(php_mapscriptng ${PHP_LIBRARY})
endif(WIN32)

IF(APPLE)
if(XCODE)
SET(CMAKE_C_LINK_FLAGS
"${CMAKE_C_LINK_FLAGS} -undefined dynamic_lookup")
SET(CMAKE_CXX_LINK_FLAGS
"${CMAKE_CXX_LINK_FLAGS} -undefined dynamic_lookup")
else(XCODE)
SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS
"${CMAKE_SHARED_MODULE_CREATE_C_FLAGS} -undefined dynamic_lookup")
SET(CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS
"${CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS} -undefined dynamic_lookup")
endif(XCODE)
ENDIF(APPLE)

# hide "defined but not used" warnings
target_compile_options(php_mapscriptng PRIVATE -Wno-unused-label)

Expand Down

0 comments on commit 14b579f

Please sign in to comment.