mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Cmake build: remove warnings with newer cmake
Omit using empty defines in find_path() and find_library()
This commit is contained in:
parent
3ebdbe65d3
commit
f697e50fd3
@ -9,10 +9,12 @@ if (ZLIB_INCLUDE_DIR)
|
|||||||
set(ZLIB_FIND_QUIETLY TRUE)
|
set(ZLIB_FIND_QUIETLY TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_path(ZLIB_INCLUDE_DIR zlib.h PATHS
|
set(zlibsearch "/usr/include" "/usr/local/include")
|
||||||
/usr/include
|
if (GNUWIN32_DIR)
|
||||||
/usr/local/include
|
list(APPEND zlibsearch "${GNUWIN32_DIR}/include")
|
||||||
"${GNUWIN32_DIR}"/include)
|
endif()
|
||||||
|
|
||||||
|
find_path(ZLIB_INCLUDE_DIR zlib.h PATHS ${zlibsearch})
|
||||||
|
|
||||||
find_file(ZLIB_HEADER zlib.h
|
find_file(ZLIB_HEADER zlib.h
|
||||||
PATHS ${ZLIB_INCLUDE_DIR} NO_DEFAULT_PATH)
|
PATHS ${ZLIB_INCLUDE_DIR} NO_DEFAULT_PATH)
|
||||||
@ -25,11 +27,15 @@ find_library(ZLIB_LIBRARY NAMES ${POTENTIAL_Z_LIBS}
|
|||||||
NO_DEFAULT_PATH)
|
NO_DEFAULT_PATH)
|
||||||
|
|
||||||
|
|
||||||
|
set(zlibsearch "C:\\Programme\\Microsoft Visual Studio 8\\VC\\lib")
|
||||||
|
if(SYSTEM_LIB_DIRS)
|
||||||
|
list(APPEND zlibsearch ${SYSTEM_LIB_DIRS})
|
||||||
|
endif()
|
||||||
|
if(GNUWIN32_DIR)
|
||||||
|
list(APPEND zlibsearch "${GNUWIN32_DIR}/lib")
|
||||||
|
endif()
|
||||||
find_library(ZLIB_LIBRARY NAMES ${POTENTIAL_Z_LIBS}
|
find_library(ZLIB_LIBRARY NAMES ${POTENTIAL_Z_LIBS}
|
||||||
PATHS
|
PATHS ${zlibsearch})
|
||||||
"C:\\Programme\\Microsoft Visual Studio 8\\VC\\lib"
|
|
||||||
${SYSTEM_LIB_DIRS}
|
|
||||||
"${GNUWIN32_DIR}"/lib)
|
|
||||||
|
|
||||||
if(ZLIB_INCLUDE_DIR AND ZLIB_LIBRARY)
|
if(ZLIB_INCLUDE_DIR AND ZLIB_LIBRARY)
|
||||||
set(ZLIB_FOUND TRUE)
|
set(ZLIB_FOUND TRUE)
|
||||||
|
Loading…
Reference in New Issue
Block a user