Skip to content
Permalink
Browse files

Use CMAKE_BUILD_TYPE for MSCV subfolder

  • Loading branch information...
geographika committed Sep 4, 2018
1 parent 3f20197 commit beab44d818f32272285bac9d1c6ad2f6145c66ee
Showing with 1 addition and 3 deletions.
  1. +1 −3 mapscript/python/CMakeLists.txt
@@ -59,14 +59,12 @@ set(BUILD_TIMESTAMP "${CMAKE_CURRENT_BINARY_DIR}/build/timestamp")
set(TESTS_FOLDER ${PROJECT_SOURCE_DIR}/mapscript/python/tests/cases)

if(MSVC)
set(OUTPUT_FOLDER ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR})
set(OUTPUT_FOLDER ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_BUILD_TYPE})
else()
# for non-Windows builds there are no build type subfolders (e.g. Release, Debug etc.)
set(OUTPUT_FOLDER ${CMAKE_CURRENT_BINARY_DIR})
endif()

set(OUTPUT_FOLDER $<TARGET_FILE_DIR:${SWIG_MODULE_pythonmapscript_REAL_NAME}>)

if(WIN32)
set(PYTHON_VENV_SCRIPTS ${OUTPUT_FOLDER}/mapscriptvenv/Scripts)
else()

0 comments on commit beab44d

Please sign in to comment.
You can’t perform that action at this time.