Commit f36eb42df35e95cfd8a6bfd77c0a43ae3764ad6a
1 parent
6c0dd5b5
Add static build-switch
Showing
4 changed files
with
6 additions
and
3 deletions
CMakeLists.txt
... | ... | @@ -2,11 +2,12 @@ cmake_minimum_required(VERSION 3.0) |
2 | 2 | project(osdev_logger) |
3 | 3 | |
4 | 4 | LIST( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/submodules/cmake ) |
5 | -LIST( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/submodules/versioning/cmake ) | |
6 | 5 | |
7 | 6 | include(projectheader) |
8 | 7 | project_header(osdev_logger) |
9 | 8 | |
9 | +set(BUILD_STATIC "ON") | |
10 | + | |
10 | 11 | add_subdirectory(src) |
11 | 12 | add_subdirectory(tests) |
12 | 13 | ... | ... |
src/CMakeLists.txt
... | ... | @@ -2,13 +2,14 @@ cmake_minimum_required(VERSION 3.12) |
2 | 2 | include(projectheader) |
3 | 3 | project_header(logger) |
4 | 4 | |
5 | +set(BUILD_AS_STATIC "ON") | |
6 | + | |
5 | 7 | include_directories( SYSTEM |
6 | 8 | ) |
7 | 9 | |
8 | 10 | include(compiler) |
9 | 11 | |
10 | 12 | set(SRC_LIST |
11 | - #${CMAKE_CURRENT_SOURCE_DIR}/logger.cpp | |
12 | 13 | ${CMAKE_CURRENT_SOURCE_DIR}/threadcontext.cpp |
13 | 14 | ${CMAKE_CURRENT_SOURCE_DIR}/log.cpp |
14 | 15 | ) | ... | ... |
1 | +Subproject commit 83d7bf32bbdfb50a077daaa1d4cc9d611570b93e | ... | ... |