mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-23 12:53:09 +00:00
Fix semi-colons being inserted into ldflags
It is causing clang++ to error when linking game{cpu}.dylib
This commit is contained in:
parent
d4ec9cc87f
commit
c08249b9db
1 changed files with 6 additions and 6 deletions
|
@ -152,25 +152,25 @@ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
|||
|
||||
if (cpu STREQUAL "x86_64")
|
||||
add_definitions(-arch x86_64 -mmacosx-version-min=10.6)
|
||||
set(ldflags ${ldflags} "-arch x86_64 -mmacosx-version-min=10.6")
|
||||
set(ldflags "${ldflags} -arch x86_64 -mmacosx-version-min=10.6")
|
||||
elseif (cpu STREQUAL "x86")
|
||||
CHECK_CXX_COMPILER_FLAG("-arch i386" cxx_has_arch_i386)
|
||||
if (cxx_has_arch_i386)
|
||||
add_definitions(-arch i386)
|
||||
set(ldflags ${ldflags} "-arch i386")
|
||||
set(ldflags "${ldflags} -arch i386")
|
||||
endif()
|
||||
|
||||
add_definitions(-mmacosx-version-min=10.4)
|
||||
set(ldflags ${ldflags} "-mmacosx-version-min=10.4")
|
||||
set(ldflags "${ldflags} -mmacosx-version-min=10.4")
|
||||
elseif (cpu STREQUAL "ppc")
|
||||
CHECK_CXX_COMPILER_FLAG("-arch ppc" cxx_has_arch_ppc)
|
||||
if (cxx_has_arch_ppc)
|
||||
add_definitions(-arch ppc)
|
||||
set(ldflags ${ldflags} "-arch ppc")
|
||||
set(ldflags "${ldflags} -arch ppc")
|
||||
endif()
|
||||
|
||||
add_definitions(-mmacosx-version-min=10.4)
|
||||
set(ldflags ${ldflags} "-mmacosx-version-min=10.4")
|
||||
set(ldflags "${ldflags} -mmacosx-version-min=10.4")
|
||||
else()
|
||||
message(FATAL_ERROR "Unsupported CPU architecture for OSX")
|
||||
endif()
|
||||
|
@ -179,7 +179,7 @@ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
|||
else()
|
||||
if (cpu STREQUAL "x86" AND X86)
|
||||
add_definitions(-m32)
|
||||
set(ldflags ${ldflags} "-m32")
|
||||
set(ldflags "${ldflags} -m32")
|
||||
endif()
|
||||
|
||||
if (os STREQUAL "linux")
|
||||
|
|
Loading…
Reference in a new issue