mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-30 20:59:12 +08:00
12a0106d03
Especially if APR_LIBRARIES can contain a list. Testing against NOTFOUND is better.
14 lines
468 B
Diff
14 lines
468 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 69e45541..19b86129 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -35,7 +35,7 @@ IF(NOT EXISTS "${APR_INCLUDE_DIR}/apr.h")
|
|
MESSAGE(FATAL_ERROR "APR include directory ${APR_INCLUDE_DIR} is not correct.")
|
|
ENDIF()
|
|
FOREACH(onelib ${APR_LIBRARIES})
|
|
- IF(NOT EXISTS ${onelib})
|
|
+ IF(${onelib} MATCHES "NOTFOUND")
|
|
MESSAGE(FATAL_ERROR "APR library ${onelib} was not found.")
|
|
ENDIF()
|
|
ENDFOREACH()
|