mirror of
https://github.com/glfw/glfw.git
synced 2025-06-08 00:34:56 +00:00
GLFW_STANDALONE
Use string(COMPARE ...) to make it a 1 line
This commit is contained in:
parent
dd8a678a66
commit
c36abe912a
@ -18,9 +18,7 @@ endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
||||
|
||||
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
||||
set(GLFW_STANDALONE TRUE)
|
||||
endif()
|
||||
string(COMPARE EQUAL ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_SOURCE_DIR} GLFW_STANDALONE)
|
||||
|
||||
option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
|
||||
option(GLFW_BUILD_EXAMPLES "Build the GLFW example programs" ${GLFW_STANDALONE})
|
||||
|
Loading…
Reference in New Issue
Block a user