Fix ENABLE_STRIP in CMakeLists.txt, now working only with gcc
This commit is contained in:
parent
db0fc4d49c
commit
e7146ac413
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue