From 25f4c0e774122c583b61098138ecdfb186885a63 Mon Sep 17 00:00:00 2001 From: andreadelprete <andre.delprete@gmail.com> Date: Mon, 6 Jun 2016 11:49:05 +0200 Subject: [PATCH] Minor changes --- src/CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a61ad75..a889a42 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -35,15 +35,15 @@ if ( MSVC ) SET(CMAKE_DEBUG_POSTFIX d) endif ( MSVC ) -TARGET_LINK_LIBRARIES(robust-equilibrium-lib ${CDD_LIBRARY}) -PKG_CONFIG_USE_DEPENDENCY(robust-equilibrium-lib qpOASES) +TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${CDD_LIBRARY}) +PKG_CONFIG_USE_DEPENDENCY(${LIBRARY_NAME} qpOASES) if(CLP_FOUND) - TARGET_LINK_LIBRARIES(robust-equilibrium-lib ${CLP_LIBRARY} + TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${CLP_LIBRARY} /usr/lib/libCoinUtils.so) endif() -SET_TARGET_PROPERTIES(robust-equilibrium-lib PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") -SET_TARGET_PROPERTIES(robust-equilibrium-lib PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") +SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") +SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") INSTALL(TARGETS ${LIBRARY_NAME} DESTINATION lib) -- GitLab