mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2024-11-29 07:01:45 +00:00
Fix Linux build
The variable SYSTEM_NAME does not exist, it should be CMAKE_SYSTEM_NAME as per http://www.cmake.org/Wiki/CMake_Useful_Variables MD-12499 test: none
This commit is contained in:
parent
3223bcff7a
commit
1b0d933ad7
2 changed files with 2 additions and 2 deletions
2
external/minizip/CMakeLists.txt
vendored
2
external/minizip/CMakeLists.txt
vendored
|
@ -18,7 +18,7 @@ set (HEADERS
|
||||||
zip.h
|
zip.h
|
||||||
)
|
)
|
||||||
|
|
||||||
if (APPLE OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
if (APPLE OR ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
|
||||||
# Mac OS X does not have fopen64()
|
# Mac OS X does not have fopen64()
|
||||||
# and several related functions as the standard fopen()
|
# and several related functions as the standard fopen()
|
||||||
# calls are 64bit
|
# calls are 64bit
|
||||||
|
|
|
@ -118,7 +118,7 @@ endif()
|
||||||
|
|
||||||
if (UNIX)
|
if (UNIX)
|
||||||
target_link_libraries(updatershared pthread)
|
target_link_libraries(updatershared pthread)
|
||||||
if(SYSTEM_NAME STREQUAL "Linux")
|
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
||||||
target_link_libraries(updatershared dl)
|
target_link_libraries(updatershared dl)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue