mirror of
https://github.com/g-truc/glm.git
synced 2024-11-15 22:34:35 +00:00
cmake: Don't abort if not testing
This prevents installing and is quite antisocial.
This commit is contained in:
parent
81a5a956b1
commit
e69271e766
@ -11,7 +11,7 @@ add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
|||||||
|
|
||||||
option(GLM_TEST_ENABLE "GLM test" OFF)
|
option(GLM_TEST_ENABLE "GLM test" OFF)
|
||||||
if(NOT GLM_TEST_ENABLE)
|
if(NOT GLM_TEST_ENABLE)
|
||||||
message(FATAL_ERROR "GLM is a header only library, no need to build it. Set the option GLM_TEST_ENABLE with ON to build and run the test bench")
|
message(STATUS "GLM is a header only library, no need to build it. Set the option GLM_TEST_ENABLE with ON to build and run the test bench")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") OR (("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel") AND UNIX))
|
if(("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") OR (("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel") AND UNIX))
|
||||||
|
Loading…
Reference in New Issue
Block a user