mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-18 10:59:18 -06:00
Compile fix for Linux arch (#3642)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user