Skip to content

Commit

Permalink
[cmake] MAD executables are created with property EXCLUDE_FROM_ALL no…
Browse files Browse the repository at this point in the history
…t set

thus all executables are built by default; configure with MADNESS_BUILD_{MADWORLD,LIBRARIES}_ONLY to avoid build/installation of non-unit-test executables
  • Loading branch information
evaleev committed Oct 25, 2023
1 parent 9ac6c14 commit 7750d01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/AddMADExecutable.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
macro(add_mad_executable _name _source_files _libs)

add_executable(${_name} EXCLUDE_FROM_ALL ${_source_files})
add_executable(${_name} ${_source_files})
target_link_libraries(${_name} PRIVATE "${_libs}")
add_dependencies(everything ${_name})

Expand Down

0 comments on commit 7750d01

Please sign in to comment.