diff --git a/CMakeLists.txt b/CMakeLists.txt index d87c0ebe..1db128ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1119,7 +1119,7 @@ else () endif (ARCH_AARCH64) endif (NOT FAT_RUNTIME) -if (NOT BUILD_SHARED_LIBS) +if (BUILD_STATIC_LIBS) install(TARGETS hs_runtime DESTINATION ${CMAKE_INSTALL_LIBDIR}) endif() @@ -1151,7 +1151,7 @@ if (BUILD_STATIC_LIBS) add_dependencies(hs ragel_Parser) endif () -if (NOT BUILD_SHARED_LIBS) +if (BUILD_STATIC_LIBS) install(TARGETS hs DESTINATION ${CMAKE_INSTALL_LIBDIR}) endif()