From 6688d6c5903e5f85d557e3612f35f0f13c4a4a50 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Tue, 29 Aug 2017 12:41:59 +0200 Subject: [PATCH] CMake build system: Link perl library on windows only. --- xs/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs/CMakeLists.txt b/xs/CMakeLists.txt index 4d6712027..564db7f21 100644 --- a/xs/CMakeLists.txt +++ b/xs/CMakeLists.txt @@ -398,7 +398,7 @@ target_compile_options(XS PRIVATE ${PerlEmbed_CCFLAGS}) #endif() # The following line will add -fPIC on Linux to make the XS.so rellocable. add_definitions(${PerlEmbed_CCCDLFLAGS}) -if (NOT APPLE) +if (WIN32) target_link_libraries(XS ${PERL_LIBRARY}) endif()