diff --git a/CMakeLists.txt b/CMakeLists.txt index 645cec3b5..27654b43c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -548,7 +548,7 @@ endif() find_package(GSOAP 2.0.0) if (GSOAP_FOUND) set(optlibsfound "${optlibsfound} gsoap") - add_compile_definitions(WITH_GSOAP) + add_definitions(-DWITH_GSOAP) else() set(optlibsnotfound "${optlibsnotfound} gsoap") endif()