Skip to content

Commit

Permalink
Re-enable old Houdini ABI
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaScheller committed Mar 21, 2024
1 parent 24b1726 commit c8b4f28
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit c8b4f28

Please sign in to comment.