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()