Commit 828384f3 authored by Victor Yacovlev's avatar Victor Yacovlev

Fix cmake rules for out-of-source-tree usage

parent 144131a8
...@@ -6,11 +6,14 @@ set(MINIMUM_QT5_VERSION 5.3.0) ...@@ -6,11 +6,14 @@ set(MINIMUM_QT5_VERSION 5.3.0)
if(DEFINED KUMIR2_DISABLED_SUBDIRS) if(DEFINED KUMIR2_DISABLED_SUBDIRS)
# message(STATUS "Explicitly disabled subdirs: ${KUMIR2_DISABLED_SUBDIRS}") # message(STATUS "Explicitly disabled subdirs: ${KUMIR2_DISABLED_SUBDIRS}")
else() else()
execute_process( # The script exists only if build from main sources tree, but not using SDK
COMMAND ${PYTHON_EXECUTABLE} "${CMAKE_SOURCE_DIR}/scripts/query_version_info.py" "--mode=cmake_disabled_modules" if(EXISTS "${CMAKE_SOURCE_DIR}/scripts/query_version_info.py")
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} execute_process(
OUTPUT_VARIABLE DISABLED_SUBDIRS COMMAND ${PYTHON_EXECUTABLE} "${CMAKE_SOURCE_DIR}/scripts/query_version_info.py" "--mode=cmake_disabled_modules"
) WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE DISABLED_SUBDIRS
)
endif()
endif() endif()
if(NOT DEFINED KUMIR2_INSTALL_PREFIX) if(NOT DEFINED KUMIR2_INSTALL_PREFIX)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment