[CMake] Getting rid of CMAKE_TYPE SubDir in LIBRARY_OUTPUT_PATH

2009-02-18 Thread Hai Nguyen
Hi, Is there a way I can point the LIBRARY_OUTPUT_PATH or LIBRARY_OUTPUT_DIRECTORY using set_target_properties at a specific directory and not have it create the CMAKE_TYPE subdirectory? I have suffixes on my DLL and .LIB files to distinguish what they are and I would like them to just land in a

[CMake] Problem with testing with cmake

2009-02-18 Thread ankit jain
Hi all, I have a directory structure with follwoign cmakelist as: myfold Cmakelist.txt subfolder subfolder Cmakelists.txt myfile.cpp Contents of Cmakelist of subfolder: add_executable(myfile myfile.cpp) target_link_libraries(myfile mylib) add_test(t1 myfile) t1 is the test

[CMake] Sharing Modules between different installation of CMake

2009-02-18 Thread Nicholas Yue
Hi, I am testing different version of CMake on multiple platform to ensure my custom modules works fine on all combination. I find it troublesome to copy my custom module to all the different ../share/cmake-X.Y/Modules directory Is there an alternative to telling CMake that there are

Re: [CMake] Sharing Modules between different installation of CMake

2009-02-18 Thread Robert Haines
Hi, I am testing different version of CMake on multiple platform to ensure my custom modules works fine on all combination. I find it troublesome to copy my custom module to all the different ../share/cmake-X.Y/Modules directory Is there an alternative to telling CMake that there are

Re: [CMake] Getting rid of CMAKE_TYPE SubDir in LIBRARY_OUTPUT_PATH

2009-02-18 Thread Philip Lowman
On Wed, Feb 18, 2009 at 3:01 AM, Hai Nguyen chaotic...@gmail.com wrote: Hi, Is there a way I can point the LIBRARY_OUTPUT_PATH or LIBRARY_OUTPUT_DIRECTORY using set_target_properties at a specific directory and not have it create the CMAKE_TYPE subdirectory? I have suffixes on my DLL and

[CMake] cannot link vtkIO

2009-02-18 Thread Yixun Liu
Hi, I developed an application, which has many CMakeList, based on VTK. One of CMakelist files is like the following, #FIND_PACKAGE(VTK REQUIRED) #INCLUDE(${VTK_USE_FILE}) ... TARGET_LINK_LIBRARIES(TetrahedrisationNG Basics Graphics2DNG Graphics3DNG vtkIO vtkCommon

[CMake] 64bit linking on linux

2009-02-18 Thread Birju Prajapati
Hi, I have a simple CMakeLists.txt file, in a directory called 'multicast': cmake_minimum_required(VERSION 2.6) include_directories(../.. /usr/local/include/boost-1_38) add_library(spreadx_multicast SHARED Message.cpp MulticastChannel.cpp) This successfully gives me a 64 bit .so:

[CMake] Testing multiple build types from MSVC

2009-02-18 Thread Ingo Albrecht
Hi everyone We (http://y60.artcom.de/) have the following problem: We would like to run our tests in MSVC with multiple build types, meaning that the RUN_TESTS target should run the tests for the build type currently selected in the IDE. However, we obviously need to provide a separate

Re: [CMake] 64bit linking on linux

2009-02-18 Thread Birju Prajapati
I've figured it out. I added the following lines into the root CMakeLists.txt file: SET(CMAKE_CXX_FLAGS -m64) SET(CMAKE_C_FLAGS -m64) SET(CMAKE_EXE_LINKER_FLAGS -m64) SET(CMAKE_MODULE_LINKER_FLAGS -m64) SET(CMAKE_SHARED_LINKER_FLAGS -m64) Could someone point me to where this is in the

Re: [CMake] 64bit linking on linux

2009-02-18 Thread Bill Hoffman
Birju Prajapati wrote: I’ve figured it out. I added the following lines into the root CMakeLists.txt file: SET(CMAKE_CXX_FLAGS -m64) SET(CMAKE_C_FLAGS -m64) SET(CMAKE_EXE_LINKER_FLAGS -m64) SET(CMAKE_MODULE_LINKER_FLAGS -m64) SET(CMAKE_SHARED_LINKER_FLAGS -m64) That is not the

Re: [CMake] warning safe linker search path

2009-02-18 Thread Brad King
John Biddiscombe wrote: I get a lot of these warnings (example below), because in /usr/lib64 there are symlinks to the libGL files in /usr/X11R6/lib64 Is there a correct (but still safe) way to make these warnings go away. There are a lot of them (a couple per plugin - so on screen we get tens

Re: [CMake] warning safe linker search path

2009-02-18 Thread John Biddiscombe
Brad OK. I'm using 2.6.2 I'll let you know if the problem continues with 2.6.3 or later (won't try it right away because I don't want to force a rebuild of anything just now - but soon) Thanks JB What version of CMake are you using? CMake is supposed to detect when the conflicting files

Re: [CMake] warning safe linker search path

2009-02-18 Thread Bill Hoffman
John Biddiscombe wrote: Brad OK. I'm using 2.6.2 I'll let you know if the problem continues with 2.6.3 or later (won't try it right away because I don't want to force a rebuild of anything just now - but soon) Changing from 2.6.2 to 2.6.3 should not trigger a full rebuild... However, if

[CMake] cmake is reruning on rebuild

2009-02-18 Thread elizabeta petreska
Hello I have one project say C that is dependent on A ,and A is dependent on B. in C.cmakelists.txt I am doing the following : add_subdirectory(../A ${CMAKE_BINARY_DIR}) ADD_LIBRARY(C SHARED ${C_S_SRCS} ) TARGET_LINK_LIBRARIES(C A ) in A cmakelists.txt I am doing the follwing :

Re: [CMake] cmake is reruning on rebuild

2009-02-18 Thread David Cole
Just use Build Solution. Rebuild Solution causes *all* build steps everywhere to re-run, even when nothing has changed, including the ones that re-run cmake if a CMakeLists.txt file changes. If you want to start over entirely (effective Rebuild Solution) then wipe your binary tree entirely,

Re: [CMake] cannot link vtkIO

2009-02-18 Thread David Cole
Change this:#FIND_PACKAGE(VTK REQUIRED) #INCLUDE(${VTK_USE_FILE}) to this: FIND_PACKAGE(VTK REQUIRED) INCLUDE(${VTK_USE_FILE}) (Remove the comment character # -- those lines are commented out...) HTH, David On Wed, Feb 18, 2009 at 8:26 AM, Yixun Liu enjo...@cs.wm.edu wrote: Hi, I

[CMake] Fwd: cmake is reruning on rebuild

2009-02-18 Thread David Cole
FYI -- conversation continued off list... here's the latest: -- Forwarded message -- From: David Cole david.c...@kitware.com Date: Wed, Feb 18, 2009 at 11:17 AM Subject: Re: [CMake] cmake is reruning on rebuild To: elizabeta petreska elizabeta.petre...@gmail.com Do your other

Re: [CMake] cmake is reruning on rebuild

2009-02-18 Thread Bill Hoffman
David Cole wrote: Just use Build Solution. Rebuild Solution causes *all* build steps everywhere to re-run, even when nothing has changed, including the ones that re-run cmake if a CMakeLists.txt file changes. If you want to start over entirely (effective Rebuild Solution) then wipe your

Re: [CMake] cannot link vtkIO

2009-02-18 Thread Yixun Liu
David Cole wrote: Change this: #FIND_PACKAGE(VTK REQUIRED) #INCLUDE(${VTK_USE_FILE}) to this: FIND_PACKAGE(VTK REQUIRED) INCLUDE(${VTK_USE_FILE}) (Remove the comment character # -- those lines are commented out...) HTH, David On Wed, Feb 18, 2009 at 8:26 AM, Yixun Liu

Re: [CMake] cannot link vtkIO

2009-02-18 Thread David Cole
What error do you get if you run cmake without the # on those two lines? (Copy and paste the output of running cmake please.) On Wed, Feb 18, 2009 at 11:54 AM, Yixun Liu enjo...@cs.wm.edu wrote: David Cole wrote: Change this: #FIND_PACKAGE(VTK REQUIRED) #INCLUDE(${VTK_USE_FILE}) to

[CMake] Creating a library

2009-02-18 Thread David Doria
If I have many executables in the same project (ie same CMakeLists.txt file), it seems like I shouldn't have to do this: set(Sources File1.cpp File1.cpp ) ADD_EXECUTABLE(Test1 Test1.cpp ${Sources}) ADD_EXECUTABLE(Test2 Test2.cpp ${Sources}) because it is compiling File1 and File2 twice when

Re: [CMake] Creating a library

2009-02-18 Thread Christopher Harvey
Off the top of my head I think TARGET_LINK_LIBRARIES(Test1 ${MyLibs}) should be TARGET_LINK_LIBRARIES(Test1 MyLibs) Also, I think you need to specify a static library if you want one. It seems like a static library is what you want in this case. I wrote this up really quick, and could be wrong

Re: [CMake] Creating a library

2009-02-18 Thread Bill Hoffman
David Doria wrote: If I have many executables in the same project (ie same CMakeLists.txt file), it seems like I shouldn't have to do this: set(Sources File1.cpp File1.cpp ) ADD_EXECUTABLE(Test1 Test1.cpp ${Sources}) ADD_EXECUTABLE(Test2 Test2.cpp ${Sources}) because it is compiling File1

Re: [CMake] Creating a library

2009-02-18 Thread David Doria
Ah of course! I am just used to doing ADD_EXECUTABLE(Test1 Test1.cpp ${Sources}) So I guess I wasn't thinking and assumed it would be the same for libraries, but now MyLibs is an actual thing, not a list of files like ${Sources} is. Thanks guys. David On Wed, Feb 18, 2009 at 12:46 PM, Bill

[CMake] Visual Studio pulling in Custom Build dependent libraries in EXE

2009-02-18 Thread Thomas Harning Jr.
For some reason, Visual Studio 2003 is pulling in custom-action dependent libraries into the EXE. Looking at the raw visual studio vcproj/sln, there are only 'project dependency' references, not References ... even then it doesn't even use the right path to the target.. but that could be due to

Re: [CMake] 64bit linking on linux

2009-02-18 Thread Aaron Turner
On Wed, Feb 18, 2009 at 6:52 AM, Bill Hoffman bill.hoff...@kitware.com wrote: Birju Prajapati wrote: I've figured it out. I added the following lines into the root CMakeLists.txt file: SET(CMAKE_CXX_FLAGS -m64) SET(CMAKE_C_FLAGS -m64) SET(CMAKE_EXE_LINKER_FLAGS -m64)

Re: [CMake] 64bit linking on linux

2009-02-18 Thread Bill Hoffman
Aaron Turner wrote: That is not the preferable way to do this. As it hard codes flags into the CMake file. The way I would do it is: export CXXFLAGS=-m64 export CFLAGS=-m64 export LDFLAGS=-m64 cmake ../myproject If those environment variables are set BEFORE you run cmake, then cmake will

Re: [CMake] 64bit linking on linux

2009-02-18 Thread Hendrik Sattler
Am Mittwoch 18 Februar 2009 15:52:18 schrieb Bill Hoffman: That is not the preferable way to do this. As it hard codes flags into the CMake file. The way I would do it is: export CXXFLAGS=-m64 export CFLAGS=-m64 export LDFLAGS=-m64 cmake ../myproject If those environment variables are

[CMake] creating custom make targets

2009-02-18 Thread Aaron Turner
No, this isn't create_custom_target- this is a generic target (non-executable) that should only be built when the user specifies it explicitly. Basically, I have a bunch of unit tests (which want to convert to CTest framework). Each of these tests executes a command and compares it's output to a

Re: [CMake] Sharing Modules between different installation of CMake

2009-02-18 Thread Nicholas Yue
Robert Haines wrote: Hi, I am testing different version of CMake on multiple platform to ensure my custom modules works fine on all combination. I find it troublesome to copy my custom module to all the different ../share/cmake-X.Y/Modules directory Is there an alternative to telling

Re: [CMake] creating custom make targets

2009-02-18 Thread Matthew Woehlke
Aaron Turner wrote: Basically, I'm looking for a way to create a new make target test_standard and associate create_custom_target()'s to it. I assume you mean add_custom_target. Suggestions? Use add_custom_command(TARGET test_standard [...]) (and also add_dependencies as needed)? What

[CMake] Generator for Visual Studio 2008 with Intel C++ 11.0?

2009-02-18 Thread jesseperla
When you have the Intel C++ compiler installed over Visual Studio, you can choose to convert a visual studio project to Intel C++ in the menu. But I can't figure out how to create a visual studio project which uses the Intel Compiler/Project System automatically? The problem is that this is

Re: [CMake] Sharing Modules between different installation of CMake

2009-02-18 Thread Philip Lowman
On Wed, Feb 18, 2009 at 4:57 PM, Nicholas Yue yue.nicho...@gmail.comwrote: Robert Haines wrote: Hi, I am testing different version of CMake on multiple platform to ensure my custom modules works fine on all combination. I find it troublesome to copy my custom module to all the

Re: [CMake] 64bit linking on linux

2009-02-18 Thread Birju Prajapati
-Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Hendrik Sattler Sent: 18 February 2009 19:18 To: cmake@cmake.org Subject: Re: [CMake] 64bit linking on linux architecture. Having a 64bit system with a gcc default of -m32 is just a

Re: [CMake] 64bit linking on linux

2009-02-18 Thread Hendrik Sattler
Am Donnerstag 19 Februar 2009 07:07:27 schrieb Birju Prajapati: -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Hendrik Sattler Sent: 18 February 2009 19:18 To: cmake@cmake.org Subject: Re: [CMake] 64bit linking on linux