FLTK logo

Re: [MOD] STR #3443: cmake/Visual Studio: control /MT vs /MD compiler flags

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.bugs  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [MOD] STR #3443: cmake/Visual Studio: control /MT vs /MD compiler flags Albrecht Schlosser Jun 20, 2019  
 
DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: https://www.fltk.org/str.php?L3443
Version: 1.4-current


FWIW, there's a new feature in CMake 3.15 (to be released soon, currently
rc2):

https://cmake.org/cmake/help/v3.15/variable/CMAKE_MSVC_RUNTIME_LIBRARY.html
https://cmake.org/cmake/help/v3.15/prop_tgt/MSVC_RUNTIME_LIBRARY.html

See also release notes:
https://cmake.org/cmake/help/v3.15/release/3.15.html

and CMake policy CMP0091:
https://cmake.org/cmake/help/v3.15/policy/CMP0091.html

The problem with this is however that it's a brand new (not yet released)
CMake version and we'd need to check the running CMake version and deal
with it dynamically, i.e. *either* use the new feature *or* do string
manipulation of CMAKE_*_FLAGS for older CMake versions which is generally
discouraged.

I'm not aware of a proper solution - I just wanted to show the current
CMake development.


Link: https://www.fltk.org/str.php?L3443
Version: 1.4-current


Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.