Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
vkedwardli committed Jan 11, 2025
1 parent 36321f1 commit 4c46495
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ if(USE_VULKAN)
option(ENABLE_PCH "Enables Precompiled header" OFF)
add_subdirectory(core/deps/glslang EXCLUDE_FROM_ALL)
if(MSVC)
get_property(all_targets DIRECTORY core/deps/glslang PROPERTY BUILDSYSTEM_TARGETS)
get_property(all_targets GLOBAL PROPERTY TARGETS)
message(STATUS "Available targets:")
foreach(target IN LISTS all_targets)
message(STATUS " - ${target}")
Expand Down Expand Up @@ -2299,4 +2299,10 @@ endif()
if(${CMAKE_GENERATOR} MATCHES "^Xcode.*|^Visual Studio.*")
file(GLOB_RECURSE SRC_FILES *.h *.cpp *.c *.cc *.mm)
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${SRC_FILES})
endif()
endif()

get_property(all_targets GLOBAL PROPERTY TARGETS)
message(STATUS "Available targets:")
foreach(target IN LISTS all_targets)
message(STATUS " - ${target}")
endforeach()

0 comments on commit 4c46495

Please sign in to comment.