Do not find PCRE in default paths on Windows

This commit is contained in:
Thomas Krijnen
2016-09-01 11:40:49 +02:00
parent 64dc2ea95c
commit 7883953290
+6 -2
View File
@@ -266,8 +266,12 @@ IF(COLLADA_SUPPORT)
list(APPEND OPENCOLLADA_LIBRARIES "${lib_path}")
endforeach()
IF("${PCRE_LIBRARY_DIR}" STREQUAL "")
find_library(pcre_library NAMES pcre PATHS ${OPENCOLLADA_LIBRARY_DIR})
if("${PCRE_LIBRARY_DIR}" STREQUAL "")
if(WIN32)
find_library(pcre_library NAMES pcre PATHS ${OPENCOLLADA_LIBRARY_DIR} NO_DEFAULT_PATH)
else()
find_library(pcre_library NAMES pcre PATHS ${OPENCOLLADA_LIBRARY_DIR})
endif()
GET_FILENAME_COMPONENT(PCRE_LIBRARY_DIR ${pcre_library} PATH)
else()
find_library(pcre_library NAMES pcre PATHS ${PCRE_LIBRARY_DIR} NO_DEFAULT_PATH)