diff --git a/CMakeLists.txt b/CMakeLists.txt index d378578..32b6560 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,6 @@ find_package(glm REQUIRED) if(CMAKE_BUILD_TYPE STREQUAL "Debug") add_definitions(-DDEBUG) endif() - if(APPLE AND NOT TARGET SDL2::SDL2) add_library(SDL2::SDL2 UNKNOWN IMPORTED) set_target_properties(SDL2::SDL2 PROPERTIES @@ -26,6 +25,12 @@ if(APPLE AND NOT TARGET SDL2::SDL2) INTERFACE_INCLUDE_DIRECTORIES ${SDL2_INCLUDE_DIRS}) endif() +# workaround for linking dbus/glib ourselves +if(UNIX AND NOT APPLE) + set_target_properties(SDL2::SDL2 PROPERTIES + IMPORTED_LINK_INTERFACE_LIBRARIES_NOCONFIG "") +endif() + if(NOT TARGET assimp::assimp) add_library(assimp::assimp UNKNOWN IMPORTED) @@ -46,6 +51,10 @@ add_executable(Graph src/postpass.cpp src/dofpass.cpp src/imguipass.cpp) +target_compile_options(Graph + PUBLIC + -fno-exceptions + -fno-rtti) target_link_libraries(Graph PUBLIC SDL2::SDL2