From b0aa8a3550f731721074475c05a05fc3e34c0f91 Mon Sep 17 00:00:00 2001 From: Rachel Powers <508861+Ryex@users.noreply.github.com> Date: Sun, 26 Mar 2023 20:23:16 -0700 Subject: [PATCH] we really need these to be lists but wiht the simi-colons seperated backing --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ce77494d..aa612e70 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,13 +37,14 @@ config_h_add_compile_definitions(HOST="${HOST_ID}") config_h_add_compile_definitions(BUILD="${BUILD_ID}") config_h_add_compile_definitions(TARGET="${TARGET_ID}") + if(WIN32) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_POSIX_C_SOURCE=1") if(MSVC) # set(EXTRALIBS ws2_32 wsock32 gdi32 iphlpapi psapi ${EXTRALIBS}) - set(EXTRALDFLAGS "${EXTRALDFLAGS} /DYNAMICBASE /NXCOMPAT") + list(APPEND EXTRALDFLAGS /DYNAMICBASE /NXCOMPAT) else() # MINGW list(APPEND EXTRALIBS -lws2_32 -lwsock32 -lgdi32 -liphlpapi -lpsapi ${EXTRALIBS})