diff options
author | Tony Theodore <tonyt@logyst.com> | 2015-10-04 05:01:18 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2015-10-04 05:01:18 (GMT) |
commit | ee5db756fa617c9d5ba6ffb1c9f19cf256a880e3 (patch) | |
tree | 89ff22e81cb4927db77bfec80244d343ab9d4e6d /src/boost.mk | |
parent | 1dd126b160ef3ec80fee9b2c5d0563486815cbe6 (diff) | |
download | mxe-ee5db756fa617c9d5ba6ffb1c9f19cf256a880e3.zip mxe-ee5db756fa617c9d5ba6ffb1c9f19cf256a880e3.tar.gz mxe-ee5db756fa617c9d5ba6ffb1c9f19cf256a880e3.tar.bz2 |
boost pthreads sdl: tidy up cmake tests
closes #887
Diffstat (limited to 'src/boost.mk')
-rw-r--r-- | src/boost.mk | 13 |
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 |