diff options
author | Brent Cook <bcook@openbsd.org> | 2015-09-09 05:15:06 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2015-09-11 16:36:26 -0500 |
commit | 72039968e295bc235a126ad00c2d31df933a9b3d (patch) | |
tree | ec1d5cd44d16b315b5b9c3638408be60b9400ab9 /CMakeLists.txt | |
parent | 9c2f0ef51ce8d0f9210497f3b81b01c073cac3ae (diff) | |
download | portable-72039968e295bc235a126ad00c2d31df933a9b3d.tar.gz portable-72039968e295bc235a126ad00c2d31df933a9b3d.tar.bz2 portable-72039968e295bc235a126ad00c2d31df933a9b3d.zip |
Do not build lib-objects targets if we are just building static libs.
This confuses some cmake targets.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e4c000..2aed0c9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -36,6 +36,8 @@ add_definitions(-DLIBRESSL_INTERNAL) | |||
36 | add_definitions(-DOPENSSL_NO_HW_PADLOCK) | 36 | add_definitions(-DOPENSSL_NO_HW_PADLOCK) |
37 | add_definitions(-DOPENSSL_NO_ASM) | 37 | add_definitions(-DOPENSSL_NO_ASM) |
38 | 38 | ||
39 | set(CMAKE_POSITION_INDEPENDENT_CODE true) | ||
40 | |||
39 | if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") | 41 | if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") |
40 | add_definitions(-Wno-pointer-sign) | 42 | add_definitions(-Wno-pointer-sign) |
41 | endif() | 43 | endif() |