Re: [CMake] How to force cmake to only look for C MPI not C++

2014-03-17 Thread Bruce Cartland
Since I haven't worked with MPI, I don't think I can help much. Try
using the message command to dump variable contents
e.g. message(STATUS "CMAKE_C_FLAGS = ${CMAKE_C_FLAGS}")
You may need to add includes explicitly with the "include_directories"
(or similar) command. Hopefully some else using MPI can jump in.

On 18/03/14 17:34, Bibrak Qamar wrote:
> Thanks for the help.
>
> I did that but still the error persists.
>
> The C compiler identification is GNU
> -- Check for working C compiler:
> /export/home/bibrak/MPJExpress_Project/work/programs/installs/bin/gcc
> -- Check for working C compiler:
> /export/home/bibrak/MPJExpress_Project/work/programs/installs/bin/gcc
> -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Found MPI:
> /export/home/bibrak/MPJExpress_Project/work/programs/mpich3_installed/lib/libmpichcxx.so
> -- Configuring done
> -- Generating done
>
>
> It finds *libmpichcxx.so* furthermore when I issue the make command it
> throws the error that mpi.h not found.
>
> Here is one of the entry in the depend.make file
>
> CMakeFiles/nativempjdev.dir/mpjdev_natmpjdev_Comm.c.o:
> ../mpjdev_natmpjdev_Comm.c
> CMakeFiles/nativempjdev.dir/mpjdev_natmpjdev_Comm.c.o:
> ../mpjdev_natmpjdev_Comm.h
> CMakeFiles/nativempjdev.dir/mpjdev_natmpjdev_Comm.c.o:
> ../mpjdev_natmpjdev_shared.h
> CMakeFiles/nativempjdev.dir/mpjdev_natmpjdev_Comm.c.o:
> /usr/java/latest/include/jni.h
> CMakeFiles/nativempjdev.dir/mpjdev_natmpjdev_Comm.c.o:
> /usr/java/latest/include/linux/jni_md.h
>
> Some how can't add *mpi.h *
>
> Does it mean this is not populated correctly ?*${MPI_C_INCLUDE_PATH}*
>
>
>
>
>
> Bibrak Qamar
>
>
>
> On Tue, Mar 18, 2014 at 11:22 AM, Bruce Cartland
> mailto:bruce.cartl...@pobox.com>> wrote:
>
> Try the project command
>
> * project(yourProjectName C)
>
> It's what I use.
>
> Quick Google found this
>
> * http://www.cmake.org/cmake/help/cmake2.6docs.html#command:project
>
>
>
> On 18/03/14 17:09, Bibrak Qamar wrote:
>> Hi,
>>
>> I am using cmake to create Makefile. I am using MPI in my project
>> but I only want to use the C (mpicc) not C++ (mpicxx) following
>> is the CMakeLists.txt:
>>
>> I have tested it but on some platforms it seems that it only
>> detects the C++ mpi (mpicxx) and uses its libraries. This creates
>> errors (mpi.h not found) as the project only needs C (mpicc and
>> its libraries).
>>
>> So how to force cmake to only search for C (mpicc) and use its
>> libraries (the mpi.h not mpicxx.h).
>>
>>
>>
>> ADD_LIBRARY(nativempjdev SHARED ${SOURCE_FILES})
>>
>> find_package(MPI)
>> if(MPI_FOUND)
>> set(CMAKE_C_COMPILE_FLAGS ${CMAKE_C_COMPILE_FLAGS}
>> ${MPI_C_COMPILE_FLAGS})
>> set(CMAKE_C_LINK_FLAGS ${CMAKE_C_LINK_FLAGS} ${MPI_C_LINK_FLAGS})
>>
>> include_directories(${MPI_C_INCLUDE_PATH} $ENV{JAVA_HOME}/include
>> $ENV{JAVA_HOME}/include/linux)
>> endif(MPI_FOUND)
>> target_link_libraries(nativempjdev ${MPI_C_LIBRARIES})
>> install(TARGETS nativempjdev DESTINATION $ENV{MPJ_HOME}/lib)
>>
>>
>>
>> Thanks
>> Bibrak Qamar
>>
>>
>>
>
>
> --
>
> Powered by www.kitware.com 
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community.
> For more information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
>
>
>

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] How to force cmake to only look for C MPI not C++

2014-03-17 Thread Micha Hergarden
Can you verify that *${MPI_C_INCLUDE_PATH} is actually set?
I normally use 'printf' debugging to find out: message(WARNING "HELLO:
**${MPI_C_INCLUDE_PATH}*")

Regards,
Micha

On 03/18/2014 07:34 AM, Bibrak Qamar wrote:
> Thanks for the help.
>
> I did that but still the error persists.
>
> The C compiler identification is GNU
> -- Check for working C compiler:
> /export/home/bibrak/MPJExpress_Project/work/programs/installs/bin/gcc
> -- Check for working C compiler:
> /export/home/bibrak/MPJExpress_Project/work/programs/installs/bin/gcc
> -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Found MPI:
> /export/home/bibrak/MPJExpress_Project/work/programs/mpich3_installed/lib/libmpichcxx.so
> -- Configuring done
> -- Generating done
>
>
> It finds *libmpichcxx.so* furthermore when I issue the make command it
> throws the error that mpi.h not found.
>
> Here is one of the entry in the depend.make file
>
> CMakeFiles/nativempjdev.dir/mpjdev_natmpjdev_Comm.c.o:
> ../mpjdev_natmpjdev_Comm.c
> CMakeFiles/nativempjdev.dir/mpjdev_natmpjdev_Comm.c.o:
> ../mpjdev_natmpjdev_Comm.h
> CMakeFiles/nativempjdev.dir/mpjdev_natmpjdev_Comm.c.o:
> ../mpjdev_natmpjdev_shared.h
> CMakeFiles/nativempjdev.dir/mpjdev_natmpjdev_Comm.c.o:
> /usr/java/latest/include/jni.h
> CMakeFiles/nativempjdev.dir/mpjdev_natmpjdev_Comm.c.o:
> /usr/java/latest/include/linux/jni_md.h
>
> Some how can't add *mpi.h *
>
> Does it mean this is not populated correctly ?*${MPI_C_INCLUDE_PATH}*
>
>
>
>
>
> Bibrak Qamar
>
>
>
> On Tue, Mar 18, 2014 at 11:22 AM, Bruce Cartland
> mailto:bruce.cartl...@pobox.com>> wrote:
>
> Try the project command
>
> * project(yourProjectName C)
>
> It's what I use.
>
> Quick Google found this
>
> * http://www.cmake.org/cmake/help/cmake2.6docs.html#command:project
>
>
>
> On 18/03/14 17:09, Bibrak Qamar wrote:
>> Hi,
>>
>> I am using cmake to create Makefile. I am using MPI in my project
>> but I only want to use the C (mpicc) not C++ (mpicxx) following
>> is the CMakeLists.txt:
>>
>> I have tested it but on some platforms it seems that it only
>> detects the C++ mpi (mpicxx) and uses its libraries. This creates
>> errors (mpi.h not found) as the project only needs C (mpicc and
>> its libraries).
>>
>> So how to force cmake to only search for C (mpicc) and use its
>> libraries (the mpi.h not mpicxx.h).
>>
>>
>>
>> ADD_LIBRARY(nativempjdev SHARED ${SOURCE_FILES})
>>
>> find_package(MPI)
>> if(MPI_FOUND)
>> set(CMAKE_C_COMPILE_FLAGS ${CMAKE_C_COMPILE_FLAGS}
>> ${MPI_C_COMPILE_FLAGS})
>> set(CMAKE_C_LINK_FLAGS ${CMAKE_C_LINK_FLAGS} ${MPI_C_LINK_FLAGS})
>>
>> include_directories(${MPI_C_INCLUDE_PATH} $ENV{JAVA_HOME}/include
>> $ENV{JAVA_HOME}/include/linux)
>> endif(MPI_FOUND)
>> target_link_libraries(nativempjdev ${MPI_C_LIBRARIES})
>> install(TARGETS nativempjdev DESTINATION $ENV{MPJ_HOME}/lib)
>>
>>
>>
>> Thanks
>> Bibrak Qamar
>>
>>
>>
>
>
> --
>
> Powered by www.kitware.com 
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community.
> For more information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
>
>
>



signature.asc
Description: OpenPGP digital signature
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] How to force cmake to only look for C MPI not C++

2014-03-17 Thread Bruce Cartland
By quick Google search, I meant for "cmake project command". Not sure
how I determined this originally. It was a long time ago. Probably read,
re-read, and re-read the doco - it wasn't obvious. Anyway, hope it helps.


On 18/03/14 17:22, Bruce Cartland wrote:
> Try the project command
>
> * project(yourProjectName C)
>
> It's what I use.
>
> Quick Google found this
>
> * http://www.cmake.org/cmake/help/cmake2.6docs.html#command:project
>
>
> On 18/03/14 17:09, Bibrak Qamar wrote:
>> Hi,
>>
>> I am using cmake to create Makefile. I am using MPI in my project but
>> I only want to use the C (mpicc) not C++ (mpicxx) following is the
>> CMakeLists.txt:
>>
>> I have tested it but on some platforms it seems that it only detects
>> the C++ mpi (mpicxx) and uses its libraries. This creates errors
>> (mpi.h not found) as the project only needs C (mpicc and its libraries).
>>
>> So how to force cmake to only search for C (mpicc) and use its
>> libraries (the mpi.h not mpicxx.h).
>>
>>
>>
>> ADD_LIBRARY(nativempjdev SHARED ${SOURCE_FILES})
>>
>> find_package(MPI)
>> if(MPI_FOUND)
>> set(CMAKE_C_COMPILE_FLAGS ${CMAKE_C_COMPILE_FLAGS}
>> ${MPI_C_COMPILE_FLAGS})
>> set(CMAKE_C_LINK_FLAGS ${CMAKE_C_LINK_FLAGS} ${MPI_C_LINK_FLAGS})
>>
>> include_directories(${MPI_C_INCLUDE_PATH} $ENV{JAVA_HOME}/include
>> $ENV{JAVA_HOME}/include/linux)
>> endif(MPI_FOUND)
>> target_link_libraries(nativempjdev ${MPI_C_LIBRARIES})
>> install(TARGETS nativempjdev DESTINATION $ENV{MPJ_HOME}/lib)
>>
>>
>>
>> Thanks
>> Bibrak Qamar
>>
>>
>>
>
>
>

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] How to force cmake to only look for C MPI not C++

2014-03-17 Thread Bibrak Qamar
Thanks for the help.

I did that but still the error persists.

The C compiler identification is GNU
-- Check for working C compiler:
/export/home/bibrak/MPJExpress_Project/work/programs/installs/bin/gcc
-- Check for working C compiler:
/export/home/bibrak/MPJExpress_Project/work/programs/installs/bin/gcc --
works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Found MPI:
/export/home/bibrak/MPJExpress_Project/work/programs/mpich3_installed/lib/libmpichcxx.so
-- Configuring done
-- Generating done


It finds *libmpichcxx.so* furthermore when I issue the make command it
throws the error that mpi.h not found.

Here is one of the entry in the depend.make file

CMakeFiles/nativempjdev.dir/mpjdev_natmpjdev_Comm.c.o:
../mpjdev_natmpjdev_Comm.c
CMakeFiles/nativempjdev.dir/mpjdev_natmpjdev_Comm.c.o:
../mpjdev_natmpjdev_Comm.h
CMakeFiles/nativempjdev.dir/mpjdev_natmpjdev_Comm.c.o:
../mpjdev_natmpjdev_shared.h
CMakeFiles/nativempjdev.dir/mpjdev_natmpjdev_Comm.c.o:
/usr/java/latest/include/jni.h
CMakeFiles/nativempjdev.dir/mpjdev_natmpjdev_Comm.c.o:
/usr/java/latest/include/linux/jni_md.h

Some how can't add *mpi.h *

Does it mean this is not populated correctly ?* ${MPI_C_INCLUDE_PATH}*





Bibrak Qamar



On Tue, Mar 18, 2014 at 11:22 AM, Bruce Cartland
wrote:

>  Try the project command
>
> * project(yourProjectName C)
>
> It's what I use.
>
> Quick Google found this
>
> * http://www.cmake.org/cmake/help/cmake2.6docs.html#command:project
>
>
>
> On 18/03/14 17:09, Bibrak Qamar wrote:
>
>  Hi,
>
>  I am using cmake to create Makefile. I am using MPI in my project but I
> only want to use the C (mpicc) not C++ (mpicxx) following is the
> CMakeLists.txt:
>
>  I have tested it but on some platforms it seems that it only detects the
> C++ mpi (mpicxx) and uses its libraries. This creates errors (mpi.h not
> found) as the project only needs C (mpicc and its libraries).
>
>  So how to force cmake to only search for C (mpicc) and use its libraries
> (the mpi.h not mpicxx.h).
>
>
>
> ADD_LIBRARY(nativempjdev SHARED ${SOURCE_FILES})
>
> find_package(MPI)
> if(MPI_FOUND)
> set(CMAKE_C_COMPILE_FLAGS ${CMAKE_C_COMPILE_FLAGS} ${MPI_C_COMPILE_FLAGS})
> set(CMAKE_C_LINK_FLAGS ${CMAKE_C_LINK_FLAGS} ${MPI_C_LINK_FLAGS})
>
> include_directories(${MPI_C_INCLUDE_PATH} $ENV{JAVA_HOME}/include
> $ENV{JAVA_HOME}/include/linux)
> endif(MPI_FOUND)
> target_link_libraries(nativempjdev ${MPI_C_LIBRARIES})
> install(TARGETS nativempjdev DESTINATION $ENV{MPJ_HOME}/lib)
>
>
>
>  Thanks
>   Bibrak Qamar
>
>
>
>
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] How to force cmake to only look for C MPI not C++

2014-03-17 Thread Bruce Cartland
Try the project command

* project(yourProjectName C)

It's what I use.

Quick Google found this

* http://www.cmake.org/cmake/help/cmake2.6docs.html#command:project


On 18/03/14 17:09, Bibrak Qamar wrote:
> Hi,
>
> I am using cmake to create Makefile. I am using MPI in my project but
> I only want to use the C (mpicc) not C++ (mpicxx) following is the
> CMakeLists.txt:
>
> I have tested it but on some platforms it seems that it only detects
> the C++ mpi (mpicxx) and uses its libraries. This creates errors
> (mpi.h not found) as the project only needs C (mpicc and its libraries).
>
> So how to force cmake to only search for C (mpicc) and use its
> libraries (the mpi.h not mpicxx.h).
>
>
>
> ADD_LIBRARY(nativempjdev SHARED ${SOURCE_FILES})
>
> find_package(MPI)
> if(MPI_FOUND)
> set(CMAKE_C_COMPILE_FLAGS ${CMAKE_C_COMPILE_FLAGS} ${MPI_C_COMPILE_FLAGS})
> set(CMAKE_C_LINK_FLAGS ${CMAKE_C_LINK_FLAGS} ${MPI_C_LINK_FLAGS})
>
> include_directories(${MPI_C_INCLUDE_PATH} $ENV{JAVA_HOME}/include
> $ENV{JAVA_HOME}/include/linux)
> endif(MPI_FOUND)
> target_link_libraries(nativempjdev ${MPI_C_LIBRARIES})
> install(TARGETS nativempjdev DESTINATION $ENV{MPJ_HOME}/lib)
>
>
>
> Thanks
> Bibrak Qamar
>
>
>

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[CMake] How to force cmake to only look for C MPI not C++

2014-03-17 Thread Bibrak Qamar
Hi,

I am using cmake to create Makefile. I am using MPI in my project but I
only want to use the C (mpicc) not C++ (mpicxx) following is the
CMakeLists.txt:

I have tested it but on some platforms it seems that it only detects the
C++ mpi (mpicxx) and uses its libraries. This creates errors (mpi.h not
found) as the project only needs C (mpicc and its libraries).

So how to force cmake to only search for C (mpicc) and use its libraries
(the mpi.h not mpicxx.h).



ADD_LIBRARY(nativempjdev SHARED ${SOURCE_FILES})

find_package(MPI)
if(MPI_FOUND)
set(CMAKE_C_COMPILE_FLAGS ${CMAKE_C_COMPILE_FLAGS} ${MPI_C_COMPILE_FLAGS})
set(CMAKE_C_LINK_FLAGS ${CMAKE_C_LINK_FLAGS} ${MPI_C_LINK_FLAGS})

include_directories(${MPI_C_INCLUDE_PATH} $ENV{JAVA_HOME}/include
$ENV{JAVA_HOME}/include/linux)
endif(MPI_FOUND)
target_link_libraries(nativempjdev ${MPI_C_LIBRARIES})
install(TARGETS nativempjdev DESTINATION $ENV{MPJ_HOME}/lib)



Thanks
Bibrak Qamar
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Linking with boost

2014-03-17 Thread Lloyd
Thanks David, now it works, seems to be cache issue


On Fri, Mar 14, 2014 at 4:46 PM, David Cole  wrote:

> If you start with a clean directory in each case, do you get the same
> results?
>
> (i.e. -- is the result of the first run cached, and re-used despite your
> change of variable value...?)
>
>
> HTH,
> David C.
>
>
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[CMake] cpack ZIP generator fails if source file is readonly

2014-03-17 Thread Bruce Cartland
I'm upgrading my build from 2.8.8 to the latest toolset.

At this stage I've only tried on Windows 2008 Server R2 Standard SP1 and
Windows Server 2003 R2 SP2 (my Linux/Mac boxes are currently broken).

The particular part which fails is packaging the source - which uses the
ZIP generator

cpack --config ./CPackSourceConfig.cmake --verbose

If I re-install cmake/cpack 2.8.8, it works.

cpack 2.8.9 and above (I've tried a number of releases including the
latest 2.8.12.2) results in "CPack Error: Problem copying file: "

If I make the source files writeable, then everything works.

Is this a known issue or can I report a bug?

Regards

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] ExternalProject_Add show sources in Visual Studio

2014-03-17 Thread David Cole

Why do you want to do that?

The ExternalProject will not rebuild correctly when you modify these 
source files... Unless you are forcing the build step to run every 
single time.


You are using ExternalProject as if it were NOT external. Why not just 
use add_subdirectory instead and have an "internal" project?



D

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] ExternalProject_Add show sources in Visual Studio

2014-03-17 Thread NoRulez
I've added the source files with "file(GLOB_RECURSE..." and set source file 
property for each of these files with HEADER_FILE_OLY to TRUE.

It seems to work, but I'm not sure if this is the right way.


> Am 17.03.2014 um 08:49 schrieb NoRulez :
> 
> Hello,
> 
> if I add an external project with ExternalProject_Add, is it possible to show 
> the sources of that project in Visual Studio too?
> 
> I don't know if this is the reason, but currently the projects type is set to 
> utility.
> 
> Best Regards
> -- 
> 
> Powered by www.kitware.com
> 
> Please keep messages on-topic and check the CMake FAQ at: 
> http://www.cmake.org/Wiki/CMake_FAQ
> 
> Kitware offers various services to support the CMake community. For more 
> information on each offering, please visit:
> 
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
> 
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
> 
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] ExternalProject_Add show sources in Visual Studio

2014-03-17 Thread NoRulez
Hello,

if I add an external project with ExternalProject_Add, is it possible to show 
the sources of that project in Visual Studio too?

I don't know if this is the reason, but currently the projects type is set to 
utility.

Best Regards
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake