Compile fix for Linux arch (#3642)

This commit is contained in:
Alexander Bock
2025-05-05 19:49:34 +02:00
committed by GitHub
parent bc715e1a74
commit 2c77efbde1

View File

@@ -466,6 +466,17 @@ target_include_directories(openspace-core
target_link_libraries(openspace-core PUBLIC nlohmann_json)
if (UNIX)
# On Arch Linux, if you have the package `oneapi` installed, this influences including
# the <exception> header and causes the header /usr/include/oneapi/tbb/task_group.h be
# pulled in, causing a compile problem
target_compile_definitions(
openspace-core
PUBLIC "_GLIBCXX_USE_TBB_PAR_BACKEND=0"
PUBLIC "_PSTL_PAR_BACKEND_SERIAL"
)
endif ()
target_precompile_headers(openspace-core PRIVATE
<openspace/json.h>
<openspace/properties/numericalproperty.h>