Skip to content

Commit

Permalink
test symlink on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
goopey7 committed Jan 5, 2024
1 parent 05a02af commit 86537b6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -228,3 +228,14 @@ add_custom_command(
)


# Check if the components folder exists in the build directory
if(NOT EXISTS "${CMAKE_BINARY_DIR}/components")
# Create a symbolic link to source/components if the folder doesn't exist
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
${CMAKE_SOURCE_DIR}/source/components ${CMAKE_BINARY_DIR}/components
RESULT_VARIABLE symLinkResult)

if(NOT symLinkResult EQUAL 0)
message(FATAL_ERROR "Failed to create symbolic link to components folder")
endif()
endif()

0 comments on commit 86537b6

Please sign in to comment.