From b99197953ac961fde7017dfd688d85f4ce1ae8c3 Mon Sep 17 00:00:00 2001 From: Tom Collins Date: Tue, 23 Jun 2020 22:33:19 -0700 Subject: [PATCH] build: allow for setting EXTRA_INC and EXTRA_LINK Can now actually set these with the -D command line option. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 54213b8..6f37870 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,6 +70,8 @@ if(VERBOSE) endif() # use -DEXTRA_INC=";" and -DEXTRA_LINK=";" +set(EXTRA_INC "" CACHE STRING "Extra include directories separated by ;") +set(EXTRA_LINK "" CACHE STRING "Extra link directories separated by ;") include_directories(${PINPROC_SOURCE_DIR}/include ${EXTRA_INC} /usr/local/include) link_directories(${EXTRA_LINK} /usr/local/lib)