Merge pull request #362 from lowdef/cleanup_after_pulreq360and361
cygwin build: cleanup after overlapping pull requests 360 & 361 + make changes minimalistic
This commit is contained in:
commit
e2631ca36c
2 changed files with 9 additions and 18 deletions
|
|
@ -13,12 +13,7 @@ set(Ledger_VERSION_DATE 20141005)
|
|||
|
||||
enable_testing()
|
||||
|
||||
if (CYGWIN)
|
||||
add_definitions(-std=c++11 -U__STRICT_ANSI__)
|
||||
else()
|
||||
add_definitions(-std=c++11)
|
||||
endif()
|
||||
|
||||
add_definitions(-std=c++11)
|
||||
if (CYGWIN)
|
||||
add_definitions(-U__STRICT_ANSI__)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -167,11 +167,9 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|||
if (BUILD_LIBRARY)
|
||||
list(APPEND _args ${CMAKE_SHARED_LIBRARY_CXX_FLAGS})
|
||||
endif()
|
||||
list(APPEND _args "-std=c++11 ")
|
||||
if (CYGWIN)
|
||||
list(APPEND _args "-std=c++11 ")
|
||||
list(APPEND _args "-U__STRICT_ANSI__")
|
||||
else()
|
||||
list(APPEND _args "-std=c++11 ")
|
||||
endif()
|
||||
list(APPEND _args "-x c++-header " ${_inc})
|
||||
list(APPEND _args -c ${_header_filename} -o ${_pch_filename})
|
||||
|
|
@ -228,11 +226,9 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|||
list(APPEND _args ${CMAKE_SHARED_LIBRARY_CXX_FLAGS})
|
||||
endif()
|
||||
list(APPEND _args ${GXX_WARNING_FLAGS})
|
||||
list(APPEND _args "-std=c++11 ")
|
||||
if (CYGWIN)
|
||||
list(APPEND _args "-std=c++11 ")
|
||||
list(APPEND _args "-U__STRICT_ANSI__")
|
||||
else()
|
||||
list(APPEND _args "-std=c++11 ")
|
||||
endif()
|
||||
list(APPEND _args "-x c++-header " ${_inc})
|
||||
list(APPEND _args -c ${_header_filename} -o ${_gch_filename})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue