mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 20:02:30 +00:00
Do not find PCRE in default paths on Windows
This commit is contained in:
@@ -266,8 +266,12 @@ IF(COLLADA_SUPPORT)
|
|||||||
list(APPEND OPENCOLLADA_LIBRARIES "${lib_path}")
|
list(APPEND OPENCOLLADA_LIBRARIES "${lib_path}")
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
IF("${PCRE_LIBRARY_DIR}" STREQUAL "")
|
if("${PCRE_LIBRARY_DIR}" STREQUAL "")
|
||||||
find_library(pcre_library NAMES pcre PATHS ${OPENCOLLADA_LIBRARY_DIR})
|
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)
|
GET_FILENAME_COMPONENT(PCRE_LIBRARY_DIR ${pcre_library} PATH)
|
||||||
else()
|
else()
|
||||||
find_library(pcre_library NAMES pcre PATHS ${PCRE_LIBRARY_DIR} NO_DEFAULT_PATH)
|
find_library(pcre_library NAMES pcre PATHS ${PCRE_LIBRARY_DIR} NO_DEFAULT_PATH)
|
||||||
|
|||||||
Reference in New Issue
Block a user