[CMake] Linker flags not considered
Hi all, I would like to build a project using intel fortran compiler. When building the project I would like to add/change two linker flags: - /stack:12800 - /subsystem:windows (when launched, the executable (GUI) will not launch any additional terminal) To do so, I simply added in my CMakeLists.txt file the following line: set(CMAKE_EXE_LINKER_FLAGS /stack:12800 /subsystem:windows) Unfortunately, when starting my application, there is still a terminal window that pops up. So the /subsystem:windows seems to have been skipped by the linker (and I guess also the /stack:12800 flag). I also try (by the way what is the difference ?): set(LINK_FLAGS /stack:12800 /subsystem:windows) but it also produced the same unwanted effect. did I miss something somewhere ? thanks for your help Eric -- Eric Pellegrini Calcul Scientifique Institut Laue-Langevin Grenoble, France -- \n Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Linker flags not considered
On Mi., 12. Okt. 2011 17:05:52 CEST, pellegrini pellegr...@ill.fr wrote: Hi all, I would like to build a project using intel fortran compiler. When building the project I would like to add/change two linker flags: - /stack:12800 - /subsystem:windows (when launched, the executable (GUI) will not launch any additional terminal) This usually means you want to add the WIN32 flag in your ADD_EXECUTABLE call. See the documentation of it. Eike -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Linker flags not considered - solved
that's work ! Great ! Thanks a lot Rolf Rolf Eike Beer a écrit : On Mi., 12. Okt. 2011 17:05:52 CEST, pellegrini pellegr...@ill.fr wrote: Hi all, I would like to build a project using intel fortran compiler. When building the project I would like to add/change two linker flags: - /stack:12800 - /subsystem:windows (when launched, the executable (GUI) will not launch any additional terminal) This usually means you want to add the WIN32 flag in your ADD_EXECUTABLE call. See the documentation of it. Eike -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake -- Eric Pellegrini Calcul Scientifique Institut Laue-Langevin Grenoble, France -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake