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:
Robert Knight 2014-03-06 17:19:03 +00:00
parent 3223bcff7a
commit 1b0d933ad7
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ set (HEADERS
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()
# and several related functions as the standard fopen()
# calls are 64bit

View file

@ -118,7 +118,7 @@ endif()
if (UNIX)
target_link_libraries(updatershared pthread)
if(SYSTEM_NAME STREQUAL "Linux")
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
target_link_libraries(updatershared dl)
endif()
endif()