|
|
|
@ -36,7 +36,11 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules) |
|
|
|
|
######################################################################## |
|
|
|
|
# Compiler specific setup |
|
|
|
|
######################################################################## |
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCXX AND NOT WIN32) |
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCC AND NOT WIN32) |
|
|
|
|
ADD_DEFINITIONS(-Wall) |
|
|
|
|
ADD_DEFINITIONS(-Wextra) |
|
|
|
|
ADD_DEFINITIONS(-Wno-unused) |
|
|
|
|
ADD_DEFINITIONS(-Wsign-compare) |
|
|
|
|
#http://gcc.gnu.org/wiki/Visibility |
|
|
|
|
add_definitions(-fvisibility=hidden) |
|
|
|
|
endif() |
|
|
|
|