From 8c8922d80e1c9b43a78f68cf0b2b70be9362e462 Mon Sep 17 00:00:00 2001 From: Leonardo Florez-Valencia Date: Sun, 13 Sep 2015 15:07:46 +0200 Subject: [PATCH] ... --- cmake/FrontAlgorithmsConfig.cmake.in | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/cmake/FrontAlgorithmsConfig.cmake.in b/cmake/FrontAlgorithmsConfig.cmake.in index 9b6f14b..c22d4ae 100644 --- a/cmake/FrontAlgorithmsConfig.cmake.in +++ b/cmake/FrontAlgorithmsConfig.cmake.in @@ -12,11 +12,19 @@ INCLUDE_DIRECTORIES( # -- Library directories -- # ========================= -LINK_DIRECTORIES( - @PROJECT_BINARY_DIR@ - @CMAKE_INSTALL_PREFIX@/bin - @CMAKE_INSTALL_PREFIX@/lib - ) +IF(MSVC) + LINK_DIRECTORIES( + @PROJECT_BINARY_DIR@/$(ConfigurationName) + @CMAKE_INSTALL_PREFIX@/bin + @CMAKE_INSTALL_PREFIX@/lib + ) +ELSE(MSVC) + LINK_DIRECTORIES( + @PROJECT_BINARY_DIR@ + @CMAKE_INSTALL_PREFIX@/bin + @CMAKE_INSTALL_PREFIX@/lib + ) +ENDIF(MSVC) # =================== # -- Library names -- -- 2.47.1