cmake: Move include(CheckIncludeFile) into loader/CMakeLists.txt
authorJuan Ramos <juan@lunarg.com>
Wed, 25 Oct 2023 17:41:57 +0000 (11:41 -0600)
committerJuan Ramos <114601453+juan-lunarg@users.noreply.github.com>
Wed, 25 Oct 2023 18:31:00 +0000 (12:31 -0600)
Currently it's confusing placed in the top level CMakeLists.txt

CMakeLists.txt
loader/CMakeLists.txt

index d36ea844bf3b58c3699ea6af96fc68c04e1d3228..bfa48440519366543a573c50e28c1e770f6a07a3 100644 (file)
@@ -222,7 +222,6 @@ target_compile_definitions(loader_common_options INTERFACE $<$<CONFIG:DEBUG>:DEB
 if (NOT (WIN32 OR APPLE))
     # Check for the existance of the secure_getenv or __secure_getenv commands
     include(CheckFunctionExists)
-    include(CheckIncludeFile)
 
     check_function_exists(secure_getenv HAVE_SECURE_GETENV)
     check_function_exists(__secure_getenv HAVE___SECURE_GETENV)
index 49fc97e32dcf2837d81df4539de94a2d1697a0c3..8223d87506a36926f55db80581e782bb3b01e34c 100644 (file)
@@ -16,6 +16,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 # ~~~
+include(CheckIncludeFile)
 
 add_library(loader_specific_options INTERFACE)
 target_link_libraries(loader_specific_options INTERFACE loader_common_options Vulkan::Headers)