Skip to content

Commit

Permalink
s/\./.inl/g.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkorolev committed Jul 30, 2024
1 parent 0a3315a commit 2c67c93
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ endif()
get_property(C5T_LIBRARIES GLOBAL PROPERTY C5T_LIBRARIES_PROPERTY)

add_custom_target(C5T_CURRENT_BUILD_INFO_H_TARGET ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/inc/current_build_info.h")
add_custom_target(C5T_CUSTOM_PER_BUILD_SCRIPT_TARGET ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/inc/pre_build_sh_output.h")
add_custom_target(C5T_CUSTOM_PER_BUILD_SCRIPT_TARGET ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/inc/pre_build_sh_output.inl")

add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/inc/current_build_info.h"
COMMAND "${C5T_DEP_DIR_current}/scripts/gen-current-build.sh"
Expand All @@ -99,18 +99,18 @@ add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/inc/current_build_info.h"

file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/inc")
if(EXISTS "${CMAKE_SOURCE_DIR}/src/pre_build.sh")
add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/inc/pre_build_sh_output.h"
add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/inc/pre_build_sh_output.inl"
COMMAND "${CMAKE_SOURCE_DIR}/src/pre_build.sh"
ARGS "${CMAKE_CURRENT_BINARY_DIR}/inc/pre_build_sh_output.h"
ARGS "${CMAKE_CURRENT_BINARY_DIR}/inc/pre_build_sh_output.inl"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
DEPENDS inc/pre_build_sh_output.h.force_rebuild)
DEPENDS inc/pre_build_sh_output.inl.force_rebuild)
else()
file(TOUCH "${CMAKE_CURRENT_BINARY_DIR}/inc/pre_build_sh_output.h")
file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/inc/pre_build_sh_output.h" "#pragma once\n// No `src/pre_build.sh` found.\n")
file(TOUCH "${CMAKE_CURRENT_BINARY_DIR}/inc/pre_build_sh_output.inl")
file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/inc/pre_build_sh_output.inl" "#pragma once\n// No `src/pre_build.sh` found.\n")
endif()

add_custom_command(OUTPUT inc/current_build_info.h.force_rebuild COMMAND cmake -E echo >/dev/null)
add_custom_command(OUTPUT inc/pre_build_sh_output.h.force_rebuild COMMAND cmake -E echo >/dev/null)
add_custom_command(OUTPUT inc/pre_build_sh_output.inl.force_rebuild COMMAND cmake -E echo >/dev/null)

if("${C5T_PROJECT_ROOT}" STREQUAL "")
set(C5T_PROJECT_ROOT_SRC "src")
Expand Down

0 comments on commit 2c67c93

Please sign in to comment.