diff options
| author | Přemysl Eric Janouch <p@janouch.name> | 2026-01-03 03:47:38 +0100 |
|---|---|---|
| committer | Přemysl Eric Janouch <p@janouch.name> | 2026-01-03 04:30:53 +0100 |
| commit | 10b6c04c971cdb1aaca542ccde82c0e7dacf8f6c (patch) | |
| tree | 50e845c000b972fb6917c4e6837e67f65b75ed82 /CMakeLists.txt | |
| parent | 16ef3f9e47830072522b1e58fce9160fcece1c92 (diff) | |
| download | sdn-10b6c04c971cdb1aaca542ccde82c0e7dacf8f6c.tar.gz sdn-10b6c04c971cdb1aaca542ccde82c0e7dacf8f6c.tar.xz sdn-10b6c04c971cdb1aaca542ccde82c0e7dacf8f6c.zip | |
Add support for MSYS2
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
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) |
