diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake index c8788872549..94354395530 100644 --- a/cmake/QtBuild.cmake +++ b/cmake/QtBuild.cmake @@ -1305,8 +1305,8 @@ function(add_qt_module target) endif() set(private_includes - "${CMAKE_CURRENT_SOURCE_DIR}" - "${CMAKE_CURRENT_BINARY_DIR}" + "$" + "$" ${arg_INCLUDE_DIRECTORIES} ) @@ -1316,8 +1316,8 @@ function(add_qt_module target) # from another module. if(NOT arg_NO_SYNC_QT) list(APPEND private_includes - "${module_include_dir}/${PROJECT_VERSION}" - "${module_include_dir}/${PROJECT_VERSION}/${module}") + "$" + "$") list(APPEND public_includes # For the syncqt headers