Skip to content

Commit bdfca28

Browse files
committed
implement safer single-header directory creation
1 parent 347afbd commit bdfca28

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@ add_subdirectory(lib/Catch2)
1515
add_subdirectory(test)
1616
add_subdirectory(benchmark)
1717

18+
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/include/cib/)
19+
1820
add_custom_command(
1921
DEPENDS
2022
${CMAKE_SOURCE_DIR}/tools/gen_release_header.py
2123
${CMAKE_SOURCE_DIR}/include/cib/*
2224
${CMAKE_SOURCE_DIR}/include/cib/detail/*
23-
COMMAND
24-
mkdir ${CMAKE_BINARY_DIR}/include/
25-
COMMAND
26-
mkdir ${CMAKE_BINARY_DIR}/include/cib/
2725
COMMAND
2826
python3 ${CMAKE_SOURCE_DIR}/tools/gen_release_header.py ${CMAKE_SOURCE_DIR}/include/cib/cib.hpp > ${CMAKE_BINARY_DIR}/include/cib/cib.hpp
2927
OUTPUT

0 commit comments

Comments
 (0)