From 9ca4f19b900e8d9f0e75a3fd6bf7ff31e8d51e35 Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Wed, 21 Aug 2019 19:09:44 -0600 Subject: [PATCH] CMake: Make sure we define flags variables for Distribution This fixes a CMake error with the MSVC generator, but it's also generally good to have around. --- dtool/CompilerFlags.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dtool/CompilerFlags.cmake b/dtool/CompilerFlags.cmake index 6deacff59b..3af78dad13 100644 --- a/dtool/CompilerFlags.cmake +++ b/dtool/CompilerFlags.cmake @@ -155,3 +155,11 @@ if(NOT MSVC) add_compile_options("-fvisibility=hidden") endif() endif() + +# These are flags for the custom configurations we add +# Distribution +set(CMAKE_C_FLAGS_DISTRIBUTION "") +set(CMAKE_CXX_FLAGS_DISTRIBUTION "") +set(CMAKE_SHARED_LINKER_FLAGS_DISTRIBUTION "") +set(CMAKE_MODULE_LINKER_FLAGS_DISTRIBUTION "") +set(CMAKE_EXE_LINKER_FLAGS_DISTRIBUTION "")