gnucash maint: Remove special Apple compile flags, no longer required.
John Ralls
jralls at code.gnucash.org
Fri Nov 30 02:23:41 EST 2018
Updated via https://github.com/Gnucash/gnucash/commit/e434835f (commit)
from https://github.com/Gnucash/gnucash/commit/3f09e5c6 (commit)
commit e434835f683a621e06d4ada1b7ae28efb488d601
Author: John Ralls <jralls at ceridwen.us>
Date: Fri Nov 30 16:23:30 2018 +0900
Remove special Apple compile flags, no longer required.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d030943..dbcf029 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -562,26 +562,6 @@ endif()
endif()
add_definitions(-D_GNU_SOURCE)
-if (APPLE)
- include (CheckCXXCompilerFlag)
- check_cxx_compiler_flag(-Wno-unused-local-typedef, have_wno_ult)
- if (have_wno_ult)
- set( CMAKE_CXX_FLAGS "-Wno-unused-local-typedef -Wmissing-prototypes ${CMAKE_CXX_FLAGS}")
- else()
- set( CMAKE_CXX_FLAGS "-Wmissing-prototypes ${CMAKE_CXX_FLAGS}")
- endif()
- check_c_compiler_flag(-Wno-unknown-attributes have_no_unkatt)
- if (have_no_unkatt)
- set(CMAKE_C_FLAGS "-Wno-unknown-attributes -Wno-typedef-redefinition ${CMAKE_C_FLAGS}")
- set(CMAKE_CXX_FLAGS "-Wno-unknown-attributes -Wno-typedef-redefinition ${CMAKE_CXX_FLAGS}")
- else()
- set(CMAKE_C_FLAGS "-Wno-typedef-redefinition ${CMAKE_C_FLAGS}")
- set(CMAKE_CXX_FLAGS "-Wno-typedef-redefinition ${CMAKE_CXX_FLAGS}")
- endif()
- # set (CMAKE_OSX_ARCHITECTURES "i386")
-endif (APPLE)
-
-
# Also, set the C++ version to c++11
set(CMAKE_CXX_FLAGS "-std=gnu++11 ${CMAKE_CXX_FLAGS}") # FIXME: should be -std=c++11
Summary of changes:
CMakeLists.txt | 20 --------------------
1 file changed, 20 deletions(-)
More information about the gnucash-changes
mailing list