File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
.github/actions/cmake_run Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,8 @@ runs:
108
108
build_target=${{ inputs.build-target }}
109
109
if [ "$build_target" != "" ]; then
110
110
target_args="--target $build_target"
111
+ else; then
112
+ target_args="--target all"
111
113
fi
112
114
113
115
# iterate stds
@@ -121,7 +123,7 @@ runs:
121
123
cmake_cxxstd_arg="-D CMAKE_CXX_STANDARD=$cxxstd"
122
124
build_dir="build-$cxxstd"
123
125
fi
124
- cmake -S . -B $build_dir -D CMAKE_BUILD_TYPE=${{ inputs.build-type }} $cmake_toolchain_arg $cmake_cxxstd_arg ${{ inputs.extra-args }} -D CMAKE_INSTALL_PREFIX=${{ inputs.install-prefix }} $cmake_cc_path_args $cmake_cxx_path_args $cmake_enable_test_args
126
+ cmake -S . -B $build_dir -D CMAKE_BUILD_TYPE=${{ inputs.build-type }} $cmake_toolchain_arg $cmake_cxxstd_arg ${{ inputs.extra-args }} -DCMAKE_EXPORT_COMPILE_COMMANDS=ON - D CMAKE_INSTALL_PREFIX=${{ inputs.install-prefix }} $cmake_cc_path_args $cmake_cxx_path_args $cmake_enable_test_args
125
127
cmake --build $build_dir --config ${{ inputs.build-type }} -j ${{ steps.cpu-cores.outputs.count }} $target_args
126
128
cmake --install $build_dir --config ${{ inputs.build-type }} --prefix prefix
127
129
if [ "$run_tests" == "true" ]; then
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ include(GNUInstallDirs)
35
35
#set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_MINSIZEREL ON CACHE STRING "")
36
36
#set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELWITHDEBINFO ON CACHE STRING "")
37
37
38
+ option (MRDOX_BUILD_TESTS "Build tests" ${BUILD_TESTING} )
38
39
option (MRDOX_BUILD_SHARED "Link shared" OFF )
39
40
option (MRDOX_INSTALL "Configure install target" ON )
40
41
option (MRDOX_PACKAGE "Build install package" ON )
@@ -296,18 +297,14 @@ if (BUILD_TESTING)
296
297
297
298
if (CMAKE_EXPORT_COMPILE_COMMANDS )
298
299
# test run
300
+ set (CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES} )
299
301
include (mrdox.cmake )
300
- set (TESTFILES
301
- testfiles/decl-only/attributes_1.cpp
302
- testfiles/decl-only/canonical_1.cpp
303
- testfiles/decl-only/record_1.cpp
304
- testfiles/decl-only/record_2.cpp )
305
302
306
- mrdox (FORMAT adoc CONFIG docs/mrdox.yml SOURCES ${TESTFILES } )
307
- mrdox (FORMAT xml CONFIG docs/mrdox.yml SOURCES ${TESTFILES } )
303
+ mrdox (FORMAT adoc CONFIG docs/mrdox.yml SOURCES ${TEST_SOURCES } )
304
+ mrdox (FORMAT xml CONFIG docs/mrdox.yml SOURCES ${TEST_SOURCES } )
308
305
309
- add_custom_target (reference_adoc DEPENDS reference.adoc )
310
- add_custom_target (reference_xml DEPENDS reference.xml )
306
+ add_custom_target (reference_adoc ALL DEPENDS reference.adoc )
307
+ add_custom_target (reference_xml ALL DEPENDS reference.xml )
311
308
endif ()
312
309
313
310
find_package (LibXml2 )
You can’t perform that action at this time.
0 commit comments