Skip to content
Snippets Groups Projects
Commit 6ef4d0a9 authored by Kasper Marstal's avatar Kasper Marstal
Browse files

BUG: Some CMake variables were not renamed

parent 5561e5c0
No related branches found
No related tags found
No related merge requests found
......@@ -48,8 +48,8 @@ else()
set( SUPERELASTIX_BUILD_TESTING_DEFAULT ON )
endif()
option( SUPERELASTIX_BUILD_TESTING "Enable building tests." ${ELASTIX_BUILD_TESTING_DEFAULT} )
if( ${ELASTIX_BUILD_TESTING} )
option( SUPERELASTIX_BUILD_TESTING "Enable building tests." ${SUPERELASTIX_BUILD_TESTING_DEFAULT} )
if( ${SUPERELASTIX_BUILD_TESTING} )
enable_testing()
add_subdirectory( Testing )
endif()
......
......@@ -72,11 +72,11 @@ endif()
option( USE_SYSTEM_GOOGLETEST "Use a pre-compiled version of GoogleTest. " OFF )
mark_as_advanced(USE_SYSTEM_GOOGLETEST)
if ( ELASTIX_BUILD_TESTING )
if ( SUPERELASTIX_BUILD_TESTING )
if ( USE_SYSTEM_GOOGLETEST )
find_package( GTest REQUIRED )
else()
include(ExternalGoogleTest)
include( ExternalGoogleTest )
endif()
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment