From 8854f95f9769ecc819008618a7a52ff9cb1ba91d Mon Sep 17 00:00:00 2001
From: Jean-Baptiste Keck <Jean-Baptiste.Keck@imag.fr>
Date: Wed, 24 Feb 2016 10:34:23 +0100
Subject: [PATCH] Quikfix of a bug in CMakeLists.txt introduced by mac specific
 compilation impacting linux.

---
 HySoP/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/HySoP/CMakeLists.txt b/HySoP/CMakeLists.txt
index 4273534d3..61cc4be5c 100644
--- a/HySoP/CMakeLists.txt
+++ b/HySoP/CMakeLists.txt
@@ -314,7 +314,7 @@ if(WITH_LIB_CXX)
             set(HYSOP_CXX_LIBRARY ${HYSOP_CXX_LIBRARY_DYLIB})
             set(HYSOP_CXX_LIBRARY_DEP cpp2hysop_dylib)
         else() #nothing to do on other platforms bundle <=> dynamic libraries, so just copy the swig generated one
-            set(HYSOP_CXX_LIBRARY_BUNDLE "${LIBRARY_OUTPUT_PATH}/libcpp2hysop_bundle.so")
+            set(HYSOP_CXX_LIBRARY_BUNDLE "${CMAKE_CURRENT_BINARY_DIR}/libcpp2hysop_bundle.so")
             add_custom_target(cpp2hysop_bundle
                 DEPENDS python-build
                 COMMAND cp `find ${CMAKE_CURRENT_BINARY_DIR}/build -name _${CPP_2_HYSOP}.so` ${HYSOP_CXX_LIBRARY_BUNDLE}
-- 
GitLab