Skip to content

Commit

Permalink
More testings
Browse files Browse the repository at this point in the history
  • Loading branch information
tfmoraes committed May 8, 2024
1 parent 3d9d3a1 commit ced38ca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ else()
SET(GDCM_BUILD_SHARED_LIBS ON)
endif(WIN32)

SET(PYTHON_LIBRARY "MANOLO")
if(LINUX)
SET(PYTHON_LIBRARY "MANOLO")
endif(LINUX)

find_package(Python COMPONENTS Interpreter Development.Module REQUIRED)

SET(GDCM_WRAP_PYTHON ON)
Expand Down Expand Up @@ -45,6 +48,8 @@ SET(GDCM_INSTALL_PACKAGE_DIR ${SKBUILD_NULL_DIR})
SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
if (APPLE)
SET(CMAKE_INSTALL_RPATH "@loader_path/")
SET(CMAKE_MODULE_LINKER_FLAGS "-undefined dynamic_lookup -liconv")
SET(CMAKE_SHARED_LINKER_FLAGS "-undefined dynamic_lookup -liconv")
elseif (LINUX)
SET(CMAKE_INSTALL_RPATH "\$ORIGIN")
endif()
Expand Down

0 comments on commit ced38ca

Please sign in to comment.