From c46332a267e3b5c6330f69d3df75fe54f6ca3d8c Mon Sep 17 00:00:00 2001 From: hristo Date: Wed, 6 Jan 2021 23:18:15 +0200 Subject: [PATCH 1/2] A better description to the variable RAYLIB_IS_MAIN Co-authored-by: Rob Loach --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 85b88693b..2d8b3e3e4 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ project(raylib) # Directory for easier includes set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) -# TRUE if this project is build as a main project and not as a dependency +# RAYLIB_IS_MAIN determines whether the project is being used from root, or as a dependency. if ("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") set(RAYLIB_IS_MAIN TRUE) else() From 5cb60d095211541ce9341f4ee0cf14b5df442785 Mon Sep 17 00:00:00 2001 From: hristo Date: Wed, 6 Jan 2021 23:20:34 +0200 Subject: [PATCH 2/2] Remove debug message Co-authored-by: Rob Loach --- cmake/AddIfFlagCompiles.cmake | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmake/AddIfFlagCompiles.cmake b/cmake/AddIfFlagCompiles.cmake index 0c6c0a1c6..403607b57 100644 --- a/cmake/AddIfFlagCompiles.cmake +++ b/cmake/AddIfFlagCompiles.cmake @@ -1,7 +1,4 @@ include(CheckCCompilerFlag) - -MESSAGE(STATUS "Pass") - function(add_if_flag_compiles flag) CHECK_C_COMPILER_FLAG("${flag}" COMPILER_HAS_THOSE_TOGGLES) set(outcome "Failed")