diff options
| author | Ahmad Fatoum <[email protected]> | 2018-07-29 21:25:42 +0200 |
|---|---|---|
| committer | Ahmad Fatoum <[email protected]> | 2018-07-29 21:28:23 +0200 |
| commit | 78487f7521a48460dda9560569add9893a4862cc (patch) | |
| tree | 7335fa06e5d733437fe1fd4b4b10586d99f1ddb3 /projects/CMake | |
| parent | e82505b873370b8f3a914a079062c21e64353210 (diff) | |
| download | raylib-78487f7521a48460dda9560569add9893a4862cc.tar.gz raylib-78487f7521a48460dda9560569add9893a4862cc.zip | |
CMake: Make the raylib project as a whole embeddable
So user code can use add_subdirectory to build it (similar to what we do
with GLFW or what the projects/CMake/CMakeLists.txt can do).
Diffstat (limited to 'projects/CMake')
| -rw-r--r-- | projects/CMake/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/projects/CMake/CMakeLists.txt b/projects/CMake/CMakeLists.txt index 68c976e5..cf1d65a6 100644 --- a/projects/CMake/CMakeLists.txt +++ b/projects/CMake/CMakeLists.txt @@ -18,8 +18,8 @@ if (NOT raylib_FOUND) # If there's none, fetch and build raylib set(FETCHCONTENT_QUIET NO) FetchContent_Populate(raylib) - set(BUILD_EXAMPLES OFF) # don't build the supplied examples - set(BUILD_GAMES OFF) # or games + set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) # don't build the supplied examples + set(BUILD_GAMES OFF CACHE BOOL "" FORCE) # or games # build raylib add_subdirectory(${raylib_SOURCE_DIR} ${raylib_BINARY_DIR}) |
