CMake: Fix qt-configure-module for modules without qt_cmdline.cmake
Some repos/modules don't have configure.json files and thus no qt_cmdline.cmake files. Make qt-configure-module check for the file's existence. As drive-by fix, surround the configure.cmake's path by double quotes. Change-Id: If1a91a0bba0c2fd282cfa08fa6ff2bb20f0a15ba Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
parent
dad9550305
commit
87fd930fca
@ -177,9 +177,11 @@ while(commandline_files)
|
||||
set(configure_file "${commandline_file_directory}/${configure_filename}")
|
||||
unset(commandline_subconfigs)
|
||||
if(EXISTS "${configure_file}")
|
||||
include(${configure_file})
|
||||
include("${configure_file}")
|
||||
endif()
|
||||
if(EXISTS "${commandline_file}")
|
||||
include("${commandline_file}")
|
||||
endif()
|
||||
include(${commandline_file})
|
||||
|
||||
if(commandline_subconfigs)
|
||||
list(TRANSFORM commandline_subconfigs PREPEND "${commandline_file_directory}/")
|
||||
|
Loading…
Reference in New Issue
Block a user