diff --git a/CMakeLists.txt b/CMakeLists.txt index a0696fb..e0ff36f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -197,14 +197,14 @@ else() # Notes: # Houdini 20 - Switched to the new C++11 ABI for Linux https://www.sidefx.com/docs/houdini/news/20/platforms.html # For Houdini versions that use gcc 9.3, please set this to _GLIBCXX_USE_CXX11_ABI=0 - #file(REAL_PATH ${AR_HOUDINI_ROOT} AR_HOUDINI_ROOT_RESOLVED) - #string(FIND ${AR_HOUDINI_ROOT_RESOLVED} "19.5" AR_HOUDINI_ROOT_IS_H195) - #if (${AR_HOUDINI_ROOT_IS_H195} STREQUAL "-1") - # add_compile_definitions(_GLIBCXX_USE_CXX11_ABI=1) - #else() - # message("Houdini 19.5 detected, switching to _GLIBCXX_USE_CXX11_ABI=0") - # add_compile_definitions(_GLIBCXX_USE_CXX11_ABI=0) - #endif() + file(REAL_PATH ${AR_HOUDINI_ROOT} AR_HOUDINI_ROOT_RESOLVED) + string(FIND ${AR_HOUDINI_ROOT_RESOLVED} "19.5" AR_HOUDINI_ROOT_IS_H195) + if (${AR_HOUDINI_ROOT_IS_H195} STREQUAL "-1") + add_compile_definitions(_GLIBCXX_USE_CXX11_ABI=1) + else() + message("Houdini 19.5 detected, switching to _GLIBCXX_USE_CXX11_ABI=0") + add_compile_definitions(_GLIBCXX_USE_CXX11_ABI=0) + endif() endif() # Compiler Options # This is the same as set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHBOOST_ALL_NO_LIB -D_GLIBCXX_USE_CXX11_ABI=0")