summaryrefslogtreecommitdiffstats
path: root/src/boost.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/boost.mk')
-rw-r--r--src/boost.mk13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/boost.mk b/src/boost.mk
index c6f72bc..1d3c060 100644
--- a/src/boost.mk
+++ b/src/boost.mk
@@ -74,14 +74,9 @@ define $(PKG)_BUILD
# test cmake
mkdir '$(1).test-cmake'
- (echo 'cmake_minimum_required(VERSION 2.8.11)'; \
- echo 'project(test-$(PKG)-cmake)'; \
- echo 'find_package(Boost COMPONENTS chrono serialization system thread REQUIRED)'; \
- echo 'add_executable(test-$(PKG)-cmake $(PREFIX)/../src/$(PKG)-test.cpp)'; \
- echo 'target_link_libraries(test-$(PKG)-cmake $${Boost_LIBRARIES})'; \
- echo 'install(TARGETS test-$(PKG)-cmake DESTINATION bin)'; \
- ) > '$(1).test-cmake/CMakeLists.txt'
-
- cd '$(1).test-cmake' && '$(TARGET)-cmake' .
+ cd '$(1).test-cmake' && '$(TARGET)-cmake' \
+ -DPKG=$(PKG) \
+ -DPKG_VERSION=$($(PKG)_VERSION) \
+ '$(PWD)/src/cmake/test'
$(MAKE) -C '$(1).test-cmake' -j 1 install
endef