Skip to content

Commit

Permalink
Make the module target only privately link the core library
Browse files Browse the repository at this point in the history
  • Loading branch information
spnda committed May 12, 2024
1 parent 1759605 commit 7c4c0fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ if (FASTGLTF_SUPPORTS_MODULES)
BASE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/module
FILES ${CMAKE_CURRENT_SOURCE_DIR}/module/fastgltf.cppm
)
target_link_libraries(fastgltf_module PUBLIC fastgltf::fastgltf)
target_link_libraries(fastgltf_module PRIVATE fastgltf::fastgltf)
target_compile_definitions(fastgltf_module PUBLIC "FASTGLTF_USE_STD_MODULE=$<BOOL:${FASTGLTF_USE_STD_MODULE}>")
endif()

Expand Down

0 comments on commit 7c4c0fb

Please sign in to comment.