diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2020-05-04 20:42:26 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2020-05-04 20:42:26 +0300 |
commit | 5e5fca7a4e2ddd59849165989fe246cfd5f65c31 (patch) | |
tree | 87063336e40d3bb9be08641ad065449651b4cb96 /CMakeLists.txt | |
parent | 17714a6c0217b62c56a1374563000c0ef008c571 (diff) | |
parent | 770744abdd23646993ed7adf1dcecfda658e3654 (diff) |
Merge branch 'develop' of https://github.com/ned14/llfio into develop
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 16d28155..eb5b766d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -310,10 +310,16 @@ if(WIN32) endif() endif() # Anyone using the static or dynamic libraries is not using the header only variant -target_compile_definitions(llfio_sl INTERFACE LLFIO_HEADERS_ONLY=0) -target_compile_definitions(llfio_dl INTERFACE LLFIO_HEADERS_ONLY=0) +target_compile_definitions(llfio_sl INTERFACE LLFIO_HEADERS_ONLY=0) +target_compile_definitions(llfio_dl INTERFACE LLFIO_HEADERS_ONLY=0) target_compile_definitions(llfio_sl PRIVATE LLFIO_SOURCE=1 LLFIO_STATIC_LINK=1) target_compile_definitions(llfio_dl PRIVATE LLFIO_SOURCE=1 LLFIO_DYN_LINK=1) +foreach(special ${SPECIAL_BUILDS}) + target_compile_definitions(llfio_sl-${special} INTERFACE LLFIO_HEADERS_ONLY=0) + target_compile_definitions(llfio_dl-${special} INTERFACE LLFIO_HEADERS_ONLY=0) + target_compile_definitions(llfio_sl-${special} PRIVATE LLFIO_SOURCE=1 LLFIO_STATIC_LINK=1) + target_compile_definitions(llfio_dl-${special} PRIVATE LLFIO_SOURCE=1 LLFIO_DYN_LINK=1) +endforeach() if(TARGET llfio-example_single-header) set(compiler_has_cxx_17 0) foreach(feature ${CMAKE_CXX_COMPILE_FEATURES}) |