mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-08 13:14:33 +00:00
remove finders
This commit is contained in:
parent
378fb30642
commit
581fe50756
3 changed files with 0 additions and 40 deletions
|
|
@ -1,13 +0,0 @@
|
|||
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()
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
if(TARGET SDL2)
|
||||
set(SDL2_FOUND TRUE)
|
||||
set(SDL2_INCLUDE_DIRS $<TARGET_PROPERTY:SDL2,INTERFACE_INCLUDE_DIRECTORIES>)
|
||||
set(SDL2_LIBRARIES SDL2)
|
||||
|
||||
# Provide a modern CMake alias
|
||||
if(NOT TARGET SDL2::SDL2)
|
||||
add_library(SDL2::SDL2 ALIAS SDL2)
|
||||
endif()
|
||||
else()
|
||||
set(SDL2_FOUND FALSE)
|
||||
message(FATAL_ERROR "SDL2 was not added with add_subdirectory before calling find_package(SDL2).")
|
||||
endif()
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
# Ensure zlib has been added before using this module
|
||||
if(TARGET zlib)
|
||||
set(ZLIB_FOUND TRUE)
|
||||
set(ZLIB_INCLUDE_DIRS $<TARGET_PROPERTY:zlib,INTERFACE_INCLUDE_DIRECTORIES>)
|
||||
set(ZLIB_LIBRARIES zlib)
|
||||
message(STATUS "Using Torques build of zlib.")
|
||||
# Provide an alias for consistency with modern CMake
|
||||
if(NOT TARGET ZLIB::ZLIB)
|
||||
add_library(ZLIB::ZLIB ALIAS zlib)
|
||||
endif()
|
||||
else()
|
||||
set(ZLIB_FOUND FALSE)
|
||||
message(FATAL_ERROR "Zlib was not added with add_subdirectory before calling find_package(ZLIB).")
|
||||
endif()
|
||||
Loading…
Add table
Add a link
Reference in a new issue