diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2019-07-03 13:41:42 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2019-07-03 13:41:42 +0200 |
| commit | a46060495d9b2d51580a28f4f67272264e615e7c (patch) | |
| tree | 788ac456eb7307c9ce236fea330d45aefd662155 | |
| parent | 6b03d4a9137383fb6a53ada2c9e048c57acc4a38 (diff) | |
Update CMake README file for cross compilation
Add linker flags to create "native" Windows executables.
| -rw-r--r-- | README.CMake.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/README.CMake.txt b/README.CMake.txt index 88c48d679..775a32de2 100644 --- a/README.CMake.txt +++ b/README.CMake.txt @@ -380,6 +380,8 @@ build tools are. The CMake website is a good source of information on this file. Here's one for MinGW under Linux. ---- +# CMake Toolchain File for MinGW Cross Compilation + # the name of the target operating system set(CMAKE_SYSTEM_NAME Windows) @@ -399,6 +401,11 @@ set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) set(CMAKE_INSTALL_PREFIX ${CMAKE_FIND_ROOT_PATH}/usr CACHE FILEPATH "install path prefix") + +# initialize required linker flags +set(CMAKE_EXE_LINKER_FLAGS_INIT "-static-libgcc -static-libstdc++") + +# end of toolchain file ---- Not too tough. The other thing you need is a native installation of FLTK |
