diff options
author | FormerLurker <hochgebe@gmail.com> | 2021-01-03 23:18:02 +0300 |
---|---|---|
committer | FormerLurker <hochgebe@gmail.com> | 2021-01-03 23:18:02 +0300 |
commit | d4852e3e537ab891309f4a6c6d25cae4954c9225 (patch) | |
tree | 1969a95f3bcc01d06f19f63370fc33c15587c8cc /CMakeLists.txt | |
parent | b0ffde1402a0fe3b1fd448bd00f0a18a0050d678 (diff) |
Add static linking for windows exe. Remove mingw build. Add copyright notices for fpconv to exe output.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3140c3a..bc84053 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required (VERSION "3.13") +cmake_minimum_required (VERSION "3.15") set(CMAKE_VERBOSE_MAKEFILE ON) # You can tweak some common (for all subprojects) stuff here. For example: @@ -19,6 +19,12 @@ IF(CMAKE_COMPILER_IS_GNUCC) set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0") ENDIF(CMAKE_COMPILER_IS_GNUCC) + +if(MSVC) + # link to the msvc runtime statically, keeping debug info if we are in debug config + set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>") +endif() + # add a definition so our libraries know that the version info is available add_definitions("-DHAS_GENERATED_VERSION") # include the generated header. |