mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 09:53:08 +02:00
Portability
- Properly detects Cygwin.
This commit is contained in:
parent
b83dc8a29e
commit
79cc9d8ed9
1 changed files with 2 additions and 1 deletions
|
@ -12,6 +12,7 @@ set (HAVE_CMAKE true)
|
|||
project (task)
|
||||
set (PROJECT_VERSION "2.4.1")
|
||||
|
||||
message ("CMAKE_SYSTEM_NAME ${CMAKE_SYSTEM_NAME}")
|
||||
set (CMAKE_CXX_FLAGS "-std=c++11")
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
set (LINUX true)
|
||||
|
@ -30,7 +31,7 @@ elseif (${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
|
|||
set (SOLARIS true)
|
||||
elseif (${CMAKE_SYSTEM_NAME} STREQUAL "GNU")
|
||||
set (GNUHURD true)
|
||||
elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
|
||||
elseif (${CMAKE_SYSTEM_NAME} MATCHES "CYGWIN")
|
||||
set (CYGWIN true)
|
||||
set (CMAKE_CXX_FLAGS "-std=gnu++0x")
|
||||
else (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue