Skip to content

Commit

Permalink
default all component not compile, only when depend by main will compile
Browse files Browse the repository at this point in the history
  • Loading branch information
Neutree committed Sep 5, 2023
1 parent 398cd96 commit 429a7ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/cmake/compile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ macro(project name)
# Call CMakeLists.txt
foreach(component_dir ${component_dirs_sorted})
get_filename_component(base_dir ${component_dir} NAME)
add_subdirectory(${component_dir} ${base_dir})
add_subdirectory(${component_dir} ${base_dir} EXCLUDE_FROM_ALL)
if(TARGET ${base_dir})
add_dependencies(${base_dir} update_build_info) # add build info dependence
else()
Expand Down

0 comments on commit 429a7ec

Please sign in to comment.