Skip to content

Commit

Permalink
Prevent target redefine.
Browse files Browse the repository at this point in the history
  • Loading branch information
stuart6854 committed Nov 30, 2023
1 parent 3c74c1e commit 5095ca5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions extern/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ option(SHADERC_ENABLE_SHARED_CRT "Use the shared CRT instead of the static CRT"
add_subdirectory(shaderc)

# FmtLib
option(FMT_INSTALL "Generate the install target." OFF)
add_subdirectory(fmt)
if (NOT TARGET fmt)
option(FMT_INSTALL "Generate the install target." OFF)
add_subdirectory(fmt)
endif ()
4 changes: 3 additions & 1 deletion samples/extern/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ add_subdirectory(sdl2)
set_property(TARGET SDL2-static PROPERTY FOLDER "ThirdParty")

# GLM
add_subdirectory(glm)
if (NOT TARGET glm)
add_subdirectory(glm)
endif ()

#stb
add_subdirectory(stb)
Expand Down

0 comments on commit 5095ca5

Please sign in to comment.