mirror of
https://github.com/reactos/reactos.git
synced 2025-04-19 12:08:55 +00:00
[CMAKE]
Don't assume CMAKE_SHARED_LIBRARY_ASM_FLAGS exists. svn path=/trunk/; revision=53597
This commit is contained in:
parent
9ef1a74a8d
commit
ea601ab08c
1 changed files with 3 additions and 1 deletions
|
@ -9,7 +9,9 @@ add_compile_flags("-gdwarf-2 -g2 -femit-struct-debug-detailed=none -feliminate-u
|
|||
add_compile_flags("-Werror")
|
||||
|
||||
# For some reason, cmake sets -fPIC, and we don't want it
|
||||
string(REPLACE "-fPIC" "" CMAKE_SHARED_LIBRARY_ASM_FLAGS ${CMAKE_SHARED_LIBRARY_ASM_FLAGS})
|
||||
if(DEFINED CMAKE_SHARED_LIBRARY_ASM_FLAGS)
|
||||
string(REPLACE "-fPIC" "" CMAKE_SHARED_LIBRARY_ASM_FLAGS ${CMAKE_SHARED_LIBRARY_ASM_FLAGS})
|
||||
endif()
|
||||
|
||||
# Tuning
|
||||
if(ARCH MATCHES i386)
|
||||
|
|
Loading…
Reference in a new issue