mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-12 00:40:44 +00:00
Create findPCRE.cmake
This commit is contained in:
parent
f3a1388ff9
commit
9f88688680
1 changed files with 13 additions and 0 deletions
13
Tools/CMake/finders/findPCRE.cmake
Normal file
13
Tools/CMake/finders/findPCRE.cmake
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
if(TARGET pcre)
|
||||
set(PCRE_FOUND TRUE)
|
||||
set(PCRE_INCLUDE_DIRS $<TARGET_PROPERTY:pcre,INTERFACE_INCLUDE_DIRECTORIES>)
|
||||
set(PCRE_LIBRARIES pcre)
|
||||
|
||||
# Provide an alias for consistency with modern CMake
|
||||
if(NOT TARGET PCRE::PCRE)
|
||||
add_library(PCRE::PCRE ALIAS pcre)
|
||||
endif()
|
||||
else()
|
||||
set(PCRE_FOUND FALSE)
|
||||
message(FATAL_ERROR "PCRE was not added with add_subdirectory before calling find_package(PCRE).")
|
||||
endif()
|
||||
Loading…
Add table
Add a link
Reference in a new issue