summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-07-07 11:41:10 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-07-07 11:41:10 +0200
commit3e41fcf185f26a55af539278bd4fbd461a699f02 (patch)
treed0440334a0de94c2da34aa1bed0775de2d5dec63
parent74034c5bc3447cf628d13ca692beec7ffc0ce4cd (diff)
cmake: include keyword parser at call site only
-rwxr-xr-xCMakeLists.txt1
-rw-r--r--cmake/opentrack-boilerplate.cmake2
2 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 139cb001..ee5c6c1e 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,7 +5,6 @@ include(opentrack-build)
project(opentrack C CXX)
cmake_minimum_required(VERSION 2.8.11)
-include(CMakeParseArguments)
include(opentrack-word-size)
include(opentrack-hier)
include(opentrack-policy)
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake
index 9a979567..ecc3128d 100644
--- a/cmake/opentrack-boilerplate.cmake
+++ b/cmake/opentrack-boilerplate.cmake
@@ -50,6 +50,8 @@ function(opentrack_compat target)
endif()
endfunction()
+include(CMakeParseArguments)
+
function(opentrack_boilerplate__ n files_ no-library_ static_ no-compat_ compile_ link_ stage2_)
if((NOT no-library_) AND (NOT stage2_))
set(link-mode SHARED)