diff options
| author | Howard Butler <howard@hobu.co> | 2016-08-22 16:40:24 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-22 16:40:24 -0500 |
| commit | da2d678c387ba76704824360dc52771c29d94693 (patch) | |
| tree | f74f79b400855cd014cd0e91e2a9c0e0c43235a3 /CMakeLists.txt | |
| parent | e103f3f962e5ddc6c837f4b8b0bcdc437b5f52d1 (diff) | |
| parent | 6a921265db9ff12a263ff1a88118a69a65b7a2df (diff) | |
| download | PROJ-4.9.3.tar.gz PROJ-4.9.3.zip | |
Merge pull request #405 from kbevers/selftest-compile-flag4.9.3
Changed self-test build behaviour from opt-out to opt-in
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b6b2bf35..cde21f0c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,6 +44,15 @@ include(Proj4Mac) include(policies) ################################################################################# +# Self-test build config +################################################################################# + +option(SELFTEST "Include self-test in build" OFF) +if(SELFTEST) + add_definitions(-DPJ_SELFTEST) +endif(SELFTEST) + +################################################################################# # threading configuration ################################################################################# set(CMAKE_THREAD_PREFER_PTHREAD TRUE) |
