cmake: Fix build when BUILD_TESTING=OFF
This commit is contained in:
@@ -176,6 +176,10 @@ function(ortools_cxx_test)
|
||||
"${multiValueArgs}"
|
||||
${ARGN}
|
||||
)
|
||||
if(NOT BUILD_TESTING)
|
||||
return()
|
||||
endif()
|
||||
|
||||
if(NOT TEST_NAME)
|
||||
message(FATAL_ERROR "no NAME provided")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user