Fix ENABLE_STRIP in CMakeLists.txt, now working only with gcc

This commit is contained in:
Pali Rohár 2013-02-05 17:00:02 +01:00
parent db0fc4d49c
commit e7146ac413

View file

@ -833,7 +833,10 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
endif()
if(ENABLE_STRIP)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s")
if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s")
endif()
# TODO: Add support for other compilers
endif()
if(ENABLE_TOUCHSCREEN)