File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ set_target_properties(${PROJECT_NAME}
7878 LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} /lib/${CMAKE_BUILD_TYPE} "
7979 RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} /bin/${CMAKE_BUILD_TYPE} "
8080)
81- if (${PROJECT_NAME} _ENABLE_UNIT_TESTING)
81+ if (${PROJECT_NAME} _BUILD_EXECUTABLE AND ${PROJECT_NAME} _ENABLE_UNIT_TESTING)
8282 set_target_properties (${PROJECT_NAME} _LIB
8383 PROPERTIES
8484 ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} /lib/${CMAKE_BUILD_TYPE} "
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ coverage: ## check code coverage quickly GCC
4646docs : # # generate Doxygen HTML documentation, including API docs
4747 rm -rf docs/
4848 rm -rf build/
49- cmake -Bbuild -DCMAKE_INSTALL_PREFIX=$(INSTALL_LOCATION ) -Dmodern-cpp-template_ENABLE_DOXYGEN =1
49+ cmake -Bbuild -DCMAKE_INSTALL_PREFIX=$(INSTALL_LOCATION ) -DProject_ENABLE_DOXYGEN =1
5050 cmake --build build --config Release
5151 cmake --build build --target doxygen-docs
5252 $(BROWSER ) docs/html/index.html
You can’t perform that action at this time.
0 commit comments