- CMake: enable -Wall when building with gcc
parent
879f2ed177
commit
5391ef9d6a
|
@ -20,7 +20,7 @@ set(CPACK_COMPONENTS_ALL assimp-bin ${LIBASSIMP_COMPONENT} assimp-dev)
|
||||||
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
||||||
add_definitions(-fPIC) # this is a very important switch and some libraries seem now to have it....
|
add_definitions(-fPIC) # this is a very important switch and some libraries seem now to have it....
|
||||||
## hide all not-exported symbols
|
## hide all not-exported symbols
|
||||||
add_definitions( -fvisibility=hidden )
|
add_definitions( -fvisibility=hidden -Wall )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
INCLUDE (FindPkgConfig)
|
INCLUDE (FindPkgConfig)
|
||||||
|
|
Loading…
Reference in New Issue