mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 04:40:18 -05:00
FetchContent: Relay CMAKE_GENERATOR_INSTANCE
If set, relay `CMAKE_GENERATOR_INSTANCE`. It may affect compiler detection in the subbuild folder. Fixes: #24404
This commit is contained in:
committed by
Brad King
parent
917f675b9e
commit
9af0e67ee5
@@ -1536,7 +1536,9 @@ ExternalProject_Add_Step(${contentName}-populate copyfile
|
||||
if(CMAKE_GENERATOR_TOOLSET)
|
||||
list(APPEND subCMakeOpts "-T${CMAKE_GENERATOR_TOOLSET}")
|
||||
endif()
|
||||
|
||||
if(CMAKE_GENERATOR_INSTANCE)
|
||||
list(APPEND subCMakeOpts "-DCMAKE_GENERATOR_INSTANCE:INTERNAL=${CMAKE_GENERATOR_INSTANCE}")
|
||||
endif()
|
||||
if(CMAKE_MAKE_PROGRAM)
|
||||
list(APPEND subCMakeOpts "-DCMAKE_MAKE_PROGRAM:FILEPATH=${CMAKE_MAKE_PROGRAM}")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user