Skip to content

Commit

Permalink
precondition
Browse files Browse the repository at this point in the history
  • Loading branch information
markaren committed Oct 10, 2024
1 parent 9d0117e commit 6e5ba30
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -512,11 +512,7 @@ target_compile_features(threepp PUBLIC "cxx_std_20")
if (UNIX)
target_link_libraries(threepp PRIVATE pthread dl)
endif ()
if (APPLE)
target_link_libraries(threepp PRIVATE "-framework IOKit")
target_link_libraries(threepp PRIVATE "-framework Cocoa")
target_link_libraries(threepp PRIVATE "-framework OpenGL")
endif ()

target_include_directories(threepp
PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>"
Expand All @@ -543,6 +539,11 @@ if (NOT DEFINED EMSCRIPTEN)
target_link_libraries(threepp PRIVATE glfw::glfw)
else ()
target_include_directories(threepp PRIVATE BEFORE SYSTEM "external/glfw/include")
if (APPLE)
target_link_libraries(threepp PRIVATE "-framework IOKit")
target_link_libraries(threepp PRIVATE "-framework Cocoa")
target_link_libraries(threepp PRIVATE "-framework OpenGL")
endif ()
endif ()

endif ()
Expand Down

0 comments on commit 6e5ba30

Please sign in to comment.