CMake build system: Link perl library on windows only.

This commit is contained in:
bubnikv 2017-08-29 12:41:59 +02:00
parent c0a9c67632
commit 6688d6c590

View File

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