Re: [CMake] NVCC and Shared Library Full Path Linking

2013-12-20 Thread Brad King
On 12/16/2013 04:25 PM, MARTIN, ROBERT S CTR USAF AFMC AFRL/RQRS wrote: > Nvlink fatal : Unsupported file type '/usr/lib/openmpi/lib/libmpi_cxx.so' > > If I replace the '/usr/lib/openmpi/lib/libmpi_cxx.so' with > '-L/usr/lib/openmpi/lib/ -lmpi_cxx', it works. When I look at the ldd > output, it

Re: [CMake] Testing for a target broke for me

2013-12-20 Thread Richard Shaw
Ok, I didn't notice my replies going to Norman only, apologies. Answer from upstream is that it returns true if the target exists, it does not care from a ExternalProject POV that the target has been built. The documentation has been clarified. I have it working properly now testing for the exist

[CMake] CPack RPM with file path "@"

2013-12-20 Thread Wang, Xiaoming (RIS-BCT)
We have some install files under directory xxx/@temp/yyy/ For CMake 2.8.11.1 "cpack -configure " run OK But on Fedora 19+ CMake 2.8.12.x has fix for mantis ticket 0014063 Patch file name: 0001-CPackRPM-protect-character-in-filename-processed-in-.patch

Re: [CMake] WORKING_DIRECTORY problem: custom targets vs. "testing"

2013-12-20 Thread Nils Gladitz
On 12/20/2013 11:55 AM, Stefan wrote: add_test ( Workingdir_test ${EXECUTABLE_OUTPUT_PATH}/workingdir_test WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} ) WORKING_DIRECTORY is part of the second signature of add_test() which starts with NAME: http://cmake.org/cmake/help/v2.8.12/cmake.html

[CMake] WORKING_DIRECTORY problem: custom targets vs. "testing"

2013-12-20 Thread Stefan
Hi, I'm not sure, if I am doing something wrong, so I made a small example program + cmake script to show the difference between the working_directory option in custom targets and the testing option. My folder structure is very simple: ./file.txt (fill it with one simple text line) ./reader.hp