diff options
| author | Tyge Lovset <[email protected]> | 2023-05-21 23:30:25 +0200 |
|---|---|---|
| committer | Tyge Lovset <[email protected]> | 2023-05-21 23:30:25 +0200 |
| commit | 0b34cadda2bc4da1cb0904989c8a5f2fe0236358 (patch) | |
| tree | 038335539ecd9363fbfc70a850a340b291a10888 /CMakeLists.txt | |
| parent | 56b0884044610861866a1a27fb64276411604986 (diff) | |
| download | STC-modified-0b34cadda2bc4da1cb0904989c8a5f2fe0236358.tar.gz STC-modified-0b34cadda2bc4da1cb0904989c8a5f2fe0236358.zip | |
NB! Made cstr.h header-only by default. Now requires #define i_static, i_implement or i_extern (includes utf8code.c) to implement non-inline functions (or link with libstc).
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 87662318..3edd39cd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,6 +18,7 @@ if(BUILD_TESTING) get_filename_component(name "${file}" NAME_WE) add_executable(${name} ${file}) #target_compile_options(${name} PRIVATE "-pthread") + target_compile_options(${name} PRIVATE "-DSTC_STATIC") if(CMAKE_THREAD_LIBS_INIT) target_link_libraries(${name} PRIVATE "${CMAKE_THREAD_LIBS_INIT}") endif() |
