Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
Qt Creator 4.10.2
Description
I don't know if 'parsed' is the right term but the variables which are set in the file which is specified by CMAKE_TOOLCHAIN_FILE are only set after the project was closed and then re-opened.
This is the output when the options is specified and applied in the build settings of the project:
Starting to parse CMake project, using: "-DCMAKE_BUILD_TYPE:STRING=Debug", "-DCMAKE_CXX_COMPILER:STRING=/usr/bin/g++-8", "-DCMAKE_C_COMPILER:STRING=/usr/bin/x86_64-linux-gnu-gcc-8", "-DCMAKE_PREFIX_PATH:STRING=/usr", "-DCMAKE_TOOLCHAIN_FILE:STRING=./conan_paths.cmake", "-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON", "-DQT_QMAKE_EXECUTABLE:STRING=/usr/lib/qt5/bin/qmake". CMAKE_MODULE_PATH: Configuring done
The CMAKE_MODULE_PATH is not set in this case.
When I close the project and then re-open it the output looks like this:
CMake Project was parsed successfully. Running "/usr/bin/cmake -E server --pipe=/tmp/cmake-.JjiAxp/socket --experimental" in /tmp/QtCreator-XOBJjV/qtc-cmake-kkCOEBKT. Starting to parse CMake project, using: "-DCMAKE_BUILD_TYPE:STRING=Debug", "-DCMAKE_CXX_COMPILER:STRING=/usr/bin/g++-8", "-DCMAKE_C_COMPILER:STRING=/usr/bin/x86_64-linux-gnu-gcc-8", "-DCMAKE_PREFIX_PATH:STRING=/usr", "-DCMAKE_TOOLCHAIN_FILE:STRING=./conan_paths.cmake", "-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON", "-DQT_QMAKE_EXECUTABLE:STRING=/usr/lib/qt5/bin/qmake". ... CMAKE_MODULE_PATH: test;test;/home/sto/projects/software/qtcreator_test;/home/sto/projects/software/qtcreator_test Configuring done
This time the value of CMAKE_MODULE_PATH is correctly set.