From 2f6dd5e80c3639a6702b84568b84aaf6f7473a9e Mon Sep 17 00:00:00 2001 From: JackBoosY Date: Thu, 24 Jun 2021 00:59:46 -0700 Subject: [PATCH] Cmake: fix the generator expression with CUDA using file(GENERATE) Closes https://github.com/wxWidgets/wxWidgets/pull/2404 --- build/cmake/modules/cotire.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/cmake/modules/cotire.cmake b/build/cmake/modules/cotire.cmake index bb69643fe6..09b52a629c 100644 --- a/build/cmake/modules/cotire.cmake +++ b/build/cmake/modules/cotire.cmake @@ -2316,6 +2316,10 @@ function (cotire_generate_target_script _language _configurations _target _targe "${_config}" "${_language}" "${_target}" COTIRE_TARGET_COMPILE_DEFINITIONS_${_upperConfig}) cotire_get_target_compiler_flags( "${_config}" "${_language}" "${_target}" COTIRE_TARGET_COMPILE_FLAGS_${_upperConfig}) + string(REPLACE + "" "" + COTIRE_TARGET_COMPILE_FLAGS_${_upperConfig} "${COTIRE_TARGET_COMPILE_FLAGS_${_upperConfig}}" + ) cotire_get_source_files_compile_definitions( "${_config}" "${_language}" COTIRE_TARGET_SOURCES_COMPILE_DEFINITIONS_${_upperConfig} ${_targetSources}) endforeach()