diff --git a/CMakeLists.txt b/CMakeLists.txt index 467aeca777..9a32308c65 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -478,8 +478,10 @@ else() if(NOT CG_FOUND) message("CG not found, Building without") add_definitions(-DHAVE_CG=0) + set(HAVE_CG 0) else() add_definitions(-DHAVE_CG=1) + set(HAVE_CG 1) endif() endif()