Skip to content

Commit a630d5e

Browse files
committed
use CMAKE_CURRENT_BINARY_DIR instead of CMAKE_BINARY_DIR
1 parent 16f83bf commit a630d5e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/nbl/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ set(NBL_SCENE_SOURCES
285285
)
286286

287287
set(NBL_GENERATED_SOURCES
288-
${CMAKE_BINARY_DIR}/src/nbl/git_info.cpp
288+
${CMAKE_CURRENT_BINARY_DIR}/src/nbl/git_info.cpp
289289
)
290290

291291
set(NABLA_SRCS_COMMON
@@ -662,13 +662,13 @@ add_custom_target(CheckGit COMMAND ${CMAKE_COMMAND}
662662
-DWORKING_DIRECTORY:PATH=${NBL_ROOT_PATH}
663663
-DGIT_EXECUTABLE:PATH=${GIT_EXECUTABLE}
664664
-DINPUT_FILE:PATH="${NBL_ROOT_PATH}/src/nbl/git_info.cpp.in"
665-
-DOUTPUT_FILE:PATH="${CMAKE_BINARY_DIR}/src/nbl/git_info.cpp"
665+
-DOUTPUT_FILE:PATH="${CMAKE_CURRENT_BINARY_DIR}/src/nbl/git_info.cpp"
666666
-P ${NBL_ROOT_PATH}/cmake/scripts/nbl/gitInfo.cmake
667-
BYPRODUCTS ${CMAKE_BINARY_DIR}/src/nbl/git_info.cpp
667+
BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/src/nbl/git_info.cpp
668668
)
669669

670670
set(INPUT_FILE "${NBL_ROOT_PATH}/src/nbl/git_info.cpp.in")
671-
set(OUTPUT_FILE "${CMAKE_BINARY_DIR}/src/nbl/git_info.cpp")
671+
set(OUTPUT_FILE "${CMAKE_CURRENT_BINARY_DIR}/src/nbl/git_info.cpp")
672672
set(WORKING_DIRECTORY ${NBL_ROOT_PATH})
673673
include("${NBL_ROOT_PATH}/cmake/scripts/nbl/gitInfo.cmake")
674674

0 commit comments

Comments
 (0)