From 10b6c04c971cdb1aaca542ccde82c0e7dacf8f6c Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Sat, 3 Jan 2026 03:47:38 +0100 Subject: Add support for MSYS2 --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e62183..21bfab1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,10 @@ target_link_libraries (${PROJECT_NAME} PUBLIC ${NCURSESW_LIBRARIES} ${ACL_LIBRARIES}) target_compile_features (${PROJECT_NAME} PUBLIC cxx_std_14) target_compile_definitions (${PROJECT_NAME} PUBLIC - -DPROJECT_NAME=\"${PROJECT_NAME}\" -DPROJECT_VERSION=\"${PROJECT_VERSION}\") + PROJECT_NAME=\"${PROJECT_NAME}\" PROJECT_VERSION=\"${PROJECT_VERSION}\") +if (MSYS) + target_compile_definitions (${PROJECT_NAME} PUBLIC _GNU_SOURCE) +endif () add_executable (${PROJECT_NAME}-mc-ext ${PROJECT_NAME}-mc-ext.cpp) target_compile_features (${PROJECT_NAME}-mc-ext PUBLIC cxx_std_17) -- cgit v1.2.3-70-g09d2