diff --git a/CMakeLists.txt b/CMakeLists.txt index a22e017107..1eac2b2cd3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -375,8 +375,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()