summaryrefslogtreecommitdiff
path: root/cmake/post/eina.cmake
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-23 18:25:22 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-23 18:25:22 -0200
commit5e294031de7403512a838776e383bae601df47d6 (patch)
treea740aeb2eccfa86561a8a9357eb521f67bf05acf /cmake/post/eina.cmake
parent0f8a6d04abbc50075cd6194a5fc5f033b897e0b1 (diff)
cmake: fix module define translation.
we can't check the options in config/eina.cmake as they were not created at that point, instead we must have a "post" file that is included after everything else is processed, options/targets all exist and can be modified.
Diffstat (limited to '')
-rw-r--r--cmake/post/eina.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/cmake/post/eina.cmake b/cmake/post/eina.cmake
new file mode 100644
index 0000000000..37be34d0b1
--- /dev/null
+++ b/cmake/post/eina.cmake
@@ -0,0 +1,21 @@
1
2# TODO: change code to avoid these
3if(EINA_MODULE_TYPE_MP_CHAINED STREQUAL "STATIC")
4 SET_GLOBAL(EINA_STATIC_BUILD_CHAINED_POOL 1)
5else()
6 unset(EINA_STATIC_BUILD_CHAINED_POOL CACHE)
7endif()
8if(EINA_MODULE_TYPE_MP_ONE_BIG STREQUAL "STATIC")
9 SET_GLOBAL(EINA_STATIC_BUILD_ONE_BIG 1)
10else()
11 unset(EINA_STATIC_BUILD_ONE_BIG CACHE)
12endif()
13if(EINA_MODULE_TYPE_MP_PASS_THROUGH STREQUAL "STATIC")
14 SET_GLOBAL(EINA_STATIC_BUILD_PASS_THROUGH 1)
15else()
16 unset(EINA_STATIC_BUILD_PASS_THROUGH CACHE)
17endif()
18
19configure_file(
20 ${CMAKE_CURRENT_SOURCE_DIR}/src/lib/eina/eina_config.h.cmake
21 ${CMAKE_CURRENT_BINARY_DIR}/src/lib/eina/eina_config.h)