add: cmake config include guard (#2592)

This commit is contained in:
MyUncle 2022-07-26 07:28:26 -05:00 committed by GitHub
parent 00c7509454
commit 6f3a633f2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,7 @@
# raylib_LDFLAGS - The linker flags needed with raylib # raylib_LDFLAGS - The linker flags needed with raylib
# raylib_DEFINITIONS - Compiler switches required for using raylib # raylib_DEFINITIONS - Compiler switches required for using raylib
if (NOT TARGET raylib)
set(XPREFIX PC_RAYLIB) set(XPREFIX PC_RAYLIB)
find_package(PkgConfig QUIET) find_package(PkgConfig QUIET)
@ -75,3 +76,4 @@ if (raylib_VERBOSE)
message(STATUS "raylib_LDFLAGS: ${raylib_LDFLAGS}") message(STATUS "raylib_LDFLAGS: ${raylib_LDFLAGS}")
message(STATUS "raylib_DEFINITIONS: ${raylib_DEFINITIONS}") message(STATUS "raylib_DEFINITIONS: ${raylib_DEFINITIONS}")
endif() endif()
endif()