-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Add cotire #897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cotire #897
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| diff --git src/CMakeLists.txt src/CMakeLists.txt | ||
| index deb2b79..4e0d7b4 100644 | ||
| --- src/CMakeLists.txt | ||
| +++ src/CMakeLists.txt | ||
| @@ -1,5 +1,7 @@ | ||
| # cotire example project | ||
|
|
||
| +include(cotire) | ||
| + | ||
| add_executable(example main.cpp example.cpp log.cpp log.h example.h) | ||
|
|
||
| # enable warnings |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| {% set version = "1.7.8" %} | ||
| {% set sha256 = "84be4ff66248ba629666bed5c2b76b869db7f04425e44bba3555bbc25d5701c1" %} | ||
|
|
||
| package: | ||
| name: cotire | ||
| version: {{ version }} | ||
|
|
||
| source: | ||
| fn: cotire-{{ version }}.tar.gz | ||
| url: https://github.com/sakra/cotire/archive/cotire-{{ version }}.tar.gz | ||
| sha256: {{ sha256 }} | ||
| patches: | ||
| # Include cotire in example CMakeLists.txt. | ||
| # | ||
| # https://github.com/sakra/cotire/pull/100 | ||
| # | ||
| - PR_100.diff | ||
|
|
||
| build: | ||
| number: 0 | ||
| features: | ||
| - vc9 # [win and py27] | ||
| - vc10 # [win and py34] | ||
| - vc14 # [win and py35] | ||
| script: | ||
| - cp "${SRC_DIR}/CMake/cotire.cmake" "${PREFIX}"/share/cmake*/Modules # [unix] | ||
| - cd %LIBRARY_PREFIX%\\share\\cmake*\\Modules && copy %SRC_DIR%\\CMake\\cotire.cmake . # [win] | ||
|
|
||
| requirements: | ||
| build: | ||
| - python # [win] | ||
| - cmake | ||
|
|
||
| run: | ||
| - cmake | ||
|
|
||
| test: | ||
| requires: | ||
| - python 2.7.* # [win and py27] | ||
| - python 3.4.* # [win and py34] | ||
| - python 3.5.* # [win and py35] | ||
| commands: | ||
| # Verify that the cotire CMake file is in place. | ||
| - test -f "${PREFIX}"/share/cmake*/Modules/cotire.cmake # [unix] | ||
| - cd %LIBRARY_PREFIX%\\share\\cmake*\\Modules && if not exist cotire.cmake exit 1 # [win] | ||
|
|
||
|
|
||
| # Use cotire in a simple test to make sure it works. | ||
| - cd "${SRC_DIR}/src" && mkdir build && cd build # [unix] | ||
| - cd "%SRC_DIR%/src" && mkdir build && cd build # [win] | ||
| - cmake -G "Unix Makefiles" .. # [unix] | ||
| # Cannot find `cl` on Windows during tests. | ||
| # Please see this issue. | ||
| # | ||
| # https://github.com/conda/conda-build/issues/1059 | ||
| # | ||
| #- cmake -G "NMake Makefiles" .. # [win] | ||
| - cmake --build . # [unix] | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Have to skip on Windows. See this issue ( conda/conda-build#1059 ).
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Had to skip building on Windows. Would be a nice test to include on all platforms, but it seems a bit challenging to get Windows to work. See this issue ( conda/conda-build#1059 ). |
||
|
|
||
|
|
||
| about: | ||
| home: https://github.com/sakra/cotire | ||
| license: MIT | ||
| summary: A CMake module that speeds up the build process of CMake based build. | ||
|
|
||
| extra: | ||
| recipe-maintainers: | ||
| - jakirkham | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Patch from this PR ( sakra/cotire#100 ). Needed to build the example.