From 4fcc0de0e5c24e8d0e36d9c85be6e2b78410273d Mon Sep 17 00:00:00 2001 From: "Frank T. Bergmann" Date: Mon, 23 Oct 2023 20:04:05 +0200 Subject: [PATCH] another try at not having postfix in filename --- CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c6b1ae1..d82afcd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -150,10 +150,18 @@ if (WITH_EXPAT) if (WITH_STATIC_RUNTIME) #expat is overriding this set(EXPAT_MSVC_STATIC_CRT ON CACHE BOOL "Use /MT flag (static CRT) when compiling in MSVC" FORCE) - set(CMAKE_RELEASE_POSTFIX "" CACHE STRING "Force empty postfix" FORCE) endif() add_subdirectory(expat/expat) + + # expat is still overrriding these, so lets force them back to empty + set_target_properties(expat PROPERTIES + DEBUG_POSTFIX "" + RELEASE_POSTFIX "" + MINSIZEREL_POSTFIX "" + RELWITHDEBINFO_POSTFIX "" + ) + endif()