diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d78ba8..353cb8a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) 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( NAME Arbutils GIT_REPOSITORY https://git.p-epsilon.com/Deukhoofd/Arbutils.git @@ -24,12 +25,7 @@ CPMAddPackage( "WINDOWS=${WINDOWS}" "STATICC=${STATICC}" ) -if (Arbutils_ADDED) - 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 () +execute_process(COMMAND ln -sf ${Arbutils_SOURCE_DIR}/src ${CMAKE_CURRENT_BINARY_DIR}/include/Arbutils) include_directories(${CMAKE_CURRENT_BINARY_DIR}/include) if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")