<div dir="ltr">Hi,<br><br>I have a simple Fortran CMake project that fails to build for "Release" build types but works for "Debug." Can someone tell me what is wrong with the following?<br><br>! file main.f90<br>
program main<br> print *, "Hello"<br>end program main<br><br># CMakeLists.txt<br>cmake_minimum_required( VERSION 2.6 FATAL_ERROR )<br>project( f90bin Fortran )<br>add_executable( main main.f90 )<br>set_target_properties( main PROPERTIES LINKER_LANGUAGE Fortran )<br>
<br>> cmake c:\f90bin -G"Visual Studio 9 2008"<br>> devenv f90bin.sln /build Debug --> works<br>> devenv f90bin.sln /build Release --> Fails with "LINK : fatal error LNK1561: entry point must be defined"<br>
<br>BTW - I am using Intel Visual Fortran 10.1 with Microsoft Visual Studio 2008 SP1 and CMake version 2.6-patch 2 RC-6<br><br>Any thoughts?<br><br>-kt<br><br><br><br></div>