Skip to content

Commit b6db935

Browse files
Enable cross-config if we are the top-level project in a ninja-multiconf build (#994)
1 parent c9add86 commit b6db935

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,3 +541,7 @@ if (TARGET test-libmongoc)
541541
TEST_INCLUDE_FILES "${PROJECT_BINARY_DIR}/LoadTests-${CMAKE_BUILD_TYPE}.cmake")
542542
endif ()
543543
endif ()
544+
545+
if (CMAKE_GENERATOR STREQUAL "Ninja Multi-Config" AND PROJECT_IS_TOP_LEVEL)
546+
set (CMAKE_CROSS_CONFIGS "all")
547+
endif ()

0 commit comments

Comments
 (0)