From c45d150fd2e2d3d1381f3484299f927cb58ceedb Mon Sep 17 00:00:00 2001 From: Gabriel Ferreira Date: Fri, 24 Jan 2025 12:58:35 +0100 Subject: [PATCH] build: Make sure CMAKE_CONFIGURATION_TYPES is filled --- build-support/custom-modules/ns3-platform-support.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build-support/custom-modules/ns3-platform-support.cmake b/build-support/custom-modules/ns3-platform-support.cmake index b8a522218..16a4a8453 100644 --- a/build-support/custom-modules/ns3-platform-support.cmake +++ b/build-support/custom-modules/ns3-platform-support.cmake @@ -81,6 +81,9 @@ endif() if(${MSVC} OR ${XCODE}) # Prevent multi-config generators from placing output files into per # configuration directory + if(NOT (DEFINED CMAKE_CONFIGURATION_TYPES)) + set(CMAKE_CONFIGURATION_TYPES DEBUG RELEASE RELWITHDEBINFO MINSIZEREL) + endif() foreach(OUTPUTCONFIG ${CMAKE_CONFIGURATION_TYPES}) string(TOUPPER ${OUTPUTCONFIG} OUTPUTCONFIG) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_${OUTPUTCONFIG}