Unbreak games/mvdsv for big-endian platforms
Add a missing PRIVATE keyword to CMakeLists.txt; this allows my powerpc and kmos's sparc64 to package mvdsv. ok kmos@ jca@ sthen@
This commit is contained in:
parent
edae6a3c76
commit
277339d256
|
@ -1,5 +1,3 @@
|
|||
BROKEN-sparc64 = target_compile_definitions called with invalid arguments BIG_ENDIAN
|
||||
|
||||
COMMENT = QuakeWorld server
|
||||
|
||||
GH_ACCOUNT = QW-Group
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
Remove link to dl as it is in OpenBSD's libc
|
||||
Have Cmake find and link to devel/pcre if installed, otherwise fall back to bundled pcre.
|
||||
Prevent error in target_compile_definitions when big-endian
|
||||
Index: CMakeLists.txt
|
||||
--- CMakeLists.txt.orig
|
||||
+++ CMakeLists.txt
|
||||
|
@ -63,6 +64,15 @@ Index: CMakeLists.txt
|
|||
else()
|
||||
target_link_libraries(${PROJECT_NAME} ws2_32)
|
||||
target_link_libraries(${PROJECT_NAME} winmm)
|
||||
@@ -135,7 +152,7 @@ target_compile_definitions(${PROJECT_NAME} PRIVATE USE
|
||||
include (TestBigEndian)
|
||||
TEST_BIG_ENDIAN(IS_BIG_ENDIAN)
|
||||
if(IS_BIG_ENDIAN)
|
||||
- target_compile_definitions(${PROJECT_NAME} __BIG_ENDIAN__Q__)
|
||||
+ target_compile_definitions(${PROJECT_NAME} PRIVATE __BIG_ENDIAN__Q__)
|
||||
message(STATUS "BIG_ENDIAN")
|
||||
else()
|
||||
target_compile_definitions(${PROJECT_NAME} PRIVATE __LITTLE_ENDIAN__Q__)
|
||||
@@ -147,6 +164,9 @@ if(CURL_FOUND)
|
||||
target_link_libraries(${PROJECT_NAME} ${CURL_LIBRARIES})
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue