Always create include link for Arbutils
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
48b11f8179
commit
712be48e06
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue