diff --git a/common/cmake_modules/GncAddSchemeTargets.cmake b/common/cmake_modules/GncAddSchemeTargets.cmake index 214cd7770c2..9a4b0e961f9 100644 --- a/common/cmake_modules/GncAddSchemeTargets.cmake +++ b/common/cmake_modules/GncAddSchemeTargets.cmake @@ -283,7 +283,7 @@ function(gnc_add_scheme_targets _TARGET) set(_TARGET_FILES "${_TARGET_FILES}" PARENT_SCOPE) - if(TEST) + if(SCHEME_TGT_TEST) add_dependencies(check ${_TARGET}) else() install(FILES ${_TARGET_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX}/${GUILE_REL_SITECCACHEDIR}/${SCHEME_TGT_OUTPUT_DIR})