Bartlett, Roscoe A wrote:
I would like to be able to append arbitrary linker options to the end of
my link lines on Unix/Linux systems. However, the options set in the
CMAKE_EXE_LINKER_FLAGS variable are listed *before* all of the libraries
that CMake knows about. I need to be able to append
Bartlett, Roscoe A wrote:
The hack:
set(CMAKE_CXX_LINK_EXECUTABLE
${CMAKE_CXX_LINK_EXECUTABLE} ${NASTY_FLAGS})
does not work because my libraries still come after these flags.
Read my suggestion more carefully. I'm not setting
CMAKE_EXE_LINKER_FLAGS. I'm setting the variable from
To: Bartlett, Roscoe A
Cc: cmake@cmake.org; Perschbacher, Brent M
Subject: Re: [CMake] How to append arbitrary linker options?
On Fri, Jan 30, 2009 at 12:56 PM, Bartlett, Roscoe A
raba...@sandia.govmailto:raba...@sandia.gov wrote:
Hello,
I would like to be able to append arbitrary linker options
On Sun, Feb 1, 2009 at 5:45 PM, Bartlett, Roscoe A raba...@sandia.govwrote:
Setting set_target_properties(foo PROPERTIES LINK_FLAGS ...) does not
work. The other libraries just come after these flags.
Sorry about that, I wasn't sure if it would work or not. Did Brad's
suggestion pan out?
.
Thanks,
- Ross
-Original Message-
From: Brad King [mailto:brad.k...@kitware.com]
Sent: Friday, January 30, 2009 12:43 PM
To: Bartlett, Roscoe A
Cc: cmake@cmake.org; Perschbacher, Brent M
Subject: Re: [CMake] How to append arbitrary linker options?
Bartlett, Roscoe A wrote
Hello,
I would like to be able to append arbitrary linker options to the end of my
link lines on Unix/Linux systems. However, the options set in the
CMAKE_EXE_LINKER_FLAGS variable are listed *before* all of the libraries that
CMake knows about. I need to be able to append a bunch of nasty
On Fri, Jan 30, 2009 at 12:56 PM, Bartlett, Roscoe A raba...@sandia.govwrote:
Hello,
I would like to be able to append arbitrary linker options to the end of my
link lines on Unix/Linux systems. However, the options set in the
CMAKE_EXE_LINKER_FLAGS variable are listed *before* all of the
Bartlett, Roscoe A wrote:
Hello,
I would like to be able to append arbitrary linker options to the end of
my link lines on Unix/Linux systems. However, the options set in the
CMAKE_EXE_LINKER_FLAGS variable are listed *before* all of the libraries
that CMake knows about. I need to be