summaryrefslogtreecommitdiffstats
path: root/Wrappers/Python
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2018-08-14 14:24:16 +0100
committerEdoardo Pasca <edo.paskino@gmail.com>2018-08-14 14:24:16 +0100
commit92794fd76d9b5274a7b9c48f4aa34c60d774f32a (patch)
treeb716b31cb35994154bcc24214cecf1b32f573116 /Wrappers/Python
parent7fd01c558905d18960cc65168a3ae4844c1f8e38 (diff)
downloadregularization-92794fd76d9b5274a7b9c48f4aa34c60d774f32a.tar.gz
regularization-92794fd76d9b5274a7b9c48f4aa34c60d774f32a.tar.bz2
regularization-92794fd76d9b5274a7b9c48f4aa34c60d774f32a.tar.xz
regularization-92794fd76d9b5274a7b9c48f4aa34c60d774f32a.zip
use generator expression for location of built targets
Diffstat (limited to 'Wrappers/Python')
-rw-r--r--Wrappers/Python/CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/Wrappers/Python/CMakeLists.txt b/Wrappers/Python/CMakeLists.txt
index 7679e68..eee4db9 100644
--- a/Wrappers/Python/CMakeLists.txt
+++ b/Wrappers/Python/CMakeLists.txt
@@ -122,11 +122,10 @@ if (PYTHONINTERP_FOUND)
COMMAND ${CMAKE_COMMAND} -E env CIL_VERSION=${CIL_VERSION}
PREFIX=${CMAKE_SOURCE_DIR}/Core
LIBRARY_INC=${CMAKE_SOURCE_DIR}/Core
- LIBRARY_LIB=${CMAKE_BINARY_DIR}/Core/${CMAKE_BUILD_TYPE}
+ LIBRARY_LIB=$<IF:WIN32,${CMAKE_BINARY_DIR}/Core/${CMAKE_BUILD_TYPE},${CMAKE_BINARY_DIR}/Core/>
${PYTHON_EXECUTABLE} ${SETUP_PY} build_ext --inplace
COMMAND ${CMAKE_COMMAND} -E touch ${OUTPUT}
DEPENDS cilreg)
-
endif()