Always create include link for Arbutils
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2022-02-05 14:45:10 +01:00
parent 48b11f8179
commit 712be48e06
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 2 additions and 6 deletions

View File

@ -15,6 +15,7 @@ option(TESTS "Whether the test executable should be build as well." OFF)
option(STATICC "Whether gcc and stdc++ should be linked statically to the library." OFF) option(STATICC "Whether gcc and stdc++ should be linked statically to the library." OFF)
set(LEVEL_SIZE "8" CACHE STRING "Number of bits to store the level as. Currently reserved, and can only be 8") set(LEVEL_SIZE "8" CACHE STRING "Number of bits to store the level as. Currently reserved, and can only be 8")
execute_process(COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/include)
CPMAddPackage( CPMAddPackage(
NAME Arbutils NAME Arbutils
GIT_REPOSITORY https://git.p-epsilon.com/Deukhoofd/Arbutils.git GIT_REPOSITORY https://git.p-epsilon.com/Deukhoofd/Arbutils.git
@ -24,12 +25,7 @@ CPMAddPackage(
"WINDOWS=${WINDOWS}" "WINDOWS=${WINDOWS}"
"STATICC=${STATICC}" "STATICC=${STATICC}"
) )
if (Arbutils_ADDED) execute_process(COMMAND ln -sf ${Arbutils_SOURCE_DIR}/src ${CMAKE_CURRENT_BINARY_DIR}/include/Arbutils)
execute_process(COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/include)
execute_process(COMMAND ln -sf ${Arbutils_SOURCE_DIR}/src
${CMAKE_CURRENT_BINARY_DIR}/include/Arbutils)
endif ()
include_directories(${CMAKE_CURRENT_BINARY_DIR}/include) include_directories(${CMAKE_CURRENT_BINARY_DIR}/include)
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")