diff --git a/CMakeLists.txt b/CMakeLists.txt index 07b01da8..a129dc70 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -100,7 +100,7 @@ if (${PARTIO_SE_ENABLED}) SET(SEEXPR_INCLUDE_PATH ${SEEXPR_BASE}/include) SET(SEEXPR_LIBDIR ${CMAKE_INSTALL_LIBDIR}) SET(SEEXPR_LINK_PATH ${SEEXPR_BASE}/${SEEXPR_LIBDIR}) - SET(SEEXPR_LIBS "SeExpr") + find_library(SEEXPR_LIB SeExpr ${SEEXPR_LINK_PATH} REQUIRED) endif () diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt index 94ec1038..af47971f 100644 --- a/src/lib/CMakeLists.txt +++ b/src/lib/CMakeLists.txt @@ -60,7 +60,7 @@ if (SEEXPR_BASE) PUBLIC $ $) - target_link_libraries(partioSe PUBLIC partio ${SEEXPR_LIBS}) + target_link_libraries(partioSe PUBLIC partio ${SEEXPR_LIB}) install(TARGETS partioSe DESTINATION ${CMAKE_INSTALL_LIBDIR}) endif () endif (SEEXPR_BASE)