diff options
author | Jack Lloyd <[email protected]> | 2017-10-12 13:22:57 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-10-12 13:22:57 -0400 |
commit | e100b238667a8fcf471b8c86f8f8c33bbe3426e7 (patch) | |
tree | fc58da9818a8e7e4576abc28b265052efb266c95 | |
parent | 55f12c897a71c8636df8bc019e09108212048722 (diff) | |
parent | 3bf6c364aa9b12916c83ce9cf9db20b7cd4145a1 (diff) |
Merge GH #1251 Fix CMake
-rwxr-xr-x | configure.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/configure.py b/configure.py index 8c6471fe8..a4d2eadf0 100755 --- a/configure.py +++ b/configure.py @@ -1625,7 +1625,7 @@ class CmakeGenerator(object): def _write_footer(self, fd, library_link, cli_link, tests_link): fd.write('\n') - fd.write('option(ENABLED_OPTIONAL_WARINIGS "If enabled more strict warinig policy will be used" OFF)\n') + fd.write('option(ENABLED_OPTIONAL_WARINIGS "If enabled more strict warning policy will be used" OFF)\n') fd.write('option(ENABLED_LTO "If enabled link time optimization will be used" OFF)\n\n') fd.write('set(COMPILER_FEATURES_RELEASE %s %s)\n' @@ -1679,12 +1679,14 @@ class CmakeGenerator(object): % tests_link) fd.write('set_target_properties(${PROJECT_NAME}_tests PROPERTIES OUTPUT_NAME botan-test)\n\n') - fd.write('set(CONFIGURATION_FILES configure.py .gitignore .astylerc authors.txt news.rst readme.rst)\n') + fd.write('set(GLOBAL_CONFIGURATION_FILES configure.py .gitignore news.rst readme.rst)\n') + fd.write('file(GLOB_RECURSE CONFIGURATION_FILES src/configs/* )\n') fd.write('file(GLOB_RECURSE DOCUMENTATION_FILES doc/* )\n') fd.write('file(GLOB_RECURSE HEADER_FILES src/*.h )\n') fd.write('file(GLOB_RECURSE INFO_FILES src/lib/*info.txt )\n') fd.write('add_custom_target(CONFIGURATION_DUMMY SOURCES ' + - '${CONFIGURATION_FILES} ${DOCUMENTATION_FILES} ${INFO_FILES} ${HEADER_FILES})\n') + '${GLOBAL_CONFIGURATION_FILES} ${CONFIGURATION_FILES} ' + + '${DOCUMENTATION_FILES} ${INFO_FILES} ${HEADER_FILES})\n') def generate(self): library_target_configuration = self._create_target_rules(self._build_paths.lib_sources) |