diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-02 06:48:59 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-02 07:54:23 +0200 |
commit | 1c14661160b217fe2b04097a9e47bdbe23431ace (patch) | |
tree | 16bcef85beba3b4b1f98700d43ae6332da954b7d | |
parent | 7a6a785538fa0c87aaf66814e0fd0943299b4fd9 (diff) |
cmake: wtf, all modules need include ${CMAKE_BINARY_DIR}
-rw-r--r-- | api/CMakeLists.txt | 2 | ||||
-rw-r--r-- | cmake/opentrack-boilerplate.cmake | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/api/CMakeLists.txt b/api/CMakeLists.txt index a181abb9..0a040a55 100644 --- a/api/CMakeLists.txt +++ b/api/CMakeLists.txt @@ -1,3 +1,3 @@ otr_module(api NO-COMPAT BIN) target_link_libraries(opentrack-api opentrack-options opentrack-compat) -target_include_directories(opentrack-api PUBLIC ${CMAKE_BINARY_DIR}) + diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake index cc197657..1a51413f 100644 --- a/cmake/opentrack-boilerplate.cmake +++ b/cmake/opentrack-boilerplate.cmake @@ -19,6 +19,8 @@ set(new-hier-path "#pragma once #define OPENTRACK_I18N_PATH \"${opentrack-i18n-path}\" ") +include_directories("${CMAKE_BINARY_DIR}") + set(hier-path-filename "${CMAKE_BINARY_DIR}/opentrack-library-path.h") set(orig-hier-path "") if(EXISTS "${hier-path-filename}") |