diff options
Diffstat (limited to 'Utilities/cmake_release_config_linux')
-rw-r--r-- | Utilities/cmake_release_config_linux | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Utilities/cmake_release_config_linux b/Utilities/cmake_release_config_linux index 4fca09d..7227936 100644 --- a/Utilities/cmake_release_config_linux +++ b/Utilities/cmake_release_config_linux @@ -5,11 +5,15 @@ CREATE_SOURCE_TARBALL="yes" CURSES_LIBRARY="/usr/lib/libcurses.a" FORM_LIBRARY="/usr/lib/libform.a" -CMAKE_CACHE_ENTRIES=" +# Write entries into the cache file before building cmake. +WriteCMakeCache() +{ +${CAT} > CMakeCache.txt <<EOF +BUILD_TESTING:BOOL=OFF CMAKE_CXX_SHLIB_LINK_FLAGS:STRING=-static CMAKE_CXX_SHLIB_BUILD_FLAGS:STRING= CMAKE_CXX_SHLIB_RUNTIME_FLAG:STRING= CURSES_LIBRARY:FILEPATH=${CURSES_LIBRARY} FORM_LIBRARY:FILEPATH=${FORM_LIBRARY} -" - +EOF +} |