projects
/
freeglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
534da7a
)
Fix build for Android using clang compiler.
author
Diederick Niehorster
<dcnieho@gmail.com>
Sat, 24 Mar 2018 08:51:51 +0000
(08:51 +0000)
committer
Diederick Niehorster
<dcnieho@gmail.com>
Sat, 24 Mar 2018 08:51:51 +0000
(08:51 +0000)
(cherry picked from commit
8366af203e4feeac5655d4452c020a2774037ae0
)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1838
7f0cb862
-5218-0410-a997-
914c9d46530a
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
fef41fd
..
d1c20e8
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-463,7
+463,9
@@
ELSE()
# '-O0 -gstabs+' helps the currently buggy GDB port
# Too late to manipulate ENV: SET(ENV{CFLAGS} "$ENV{CFLAGS} -mandroid")
# Not using _INIT variables, they seem to be used internally only
- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mandroid")
+ IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mandroid")
+ ENDIF()
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0 -gstabs+")
ENDIF()
ENDIF()