fixed compile warning on Mac 10.6 and below #4313
This commit is contained in:
parent
4fcec1d217
commit
028757e4e0
|
@ -76,7 +76,11 @@ if (UNIX)
|
||||||
|
|
||||||
# warnings as errors:
|
# warnings as errors:
|
||||||
# we have a problem with people checking in code with warnings.
|
# we have a problem with people checking in code with warnings.
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -fPIC")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
|
||||||
|
|
||||||
|
if (NOT APPLE)
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
|
||||||
|
endif()
|
||||||
|
|
||||||
# For config.h, detect the libraries, functions, etc.
|
# For config.h, detect the libraries, functions, etc.
|
||||||
include(CheckIncludeFiles)
|
include(CheckIncludeFiles)
|
||||||
|
|
Loading…
Reference in New Issue