I can see that ExtendSinglePrecisionConstants=“true” has been subsequently added to. Then, I manually changed the flag in Visual Studio GUI to /fpconstant, and saved the project. vfproj in a text editor and verified that /fpconstant is in the string AdditionalOptions, so it seems like the add_compile_options is doing its job. However, after the project is built by CMake and I open the sln solution in Visual Studio, the flag has not changed (Fortran>Floating Point > Extend Precision of Single-Precision Constants). Here is how I have prepared my CMakeLists.txt: cmake_minimum_required(VERSION 3.19.4 FATAL_ERROR) The static library makes it easy to create a unit. Static libraries have several benefits: Unit Testing Static libraries enable unit testing. Static libraries are shared components that compile to LIB files which in turn link into DLLs and EXEs. I have to pass compiler flag /fpconstant. Intel Fortran with Visual Studio integration makes it easy to create and consume static libraries. I am trying to use CMake to build a static library project in Visual Studio Community 2015. I am new to CMake although I have been aware of its existence for several years.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |