[CMake] (no subject)

2019-12-16 Thread baschdel_98
Hello,

 

I've got a small Problem with Cpack and BundleUtilities on Windows.

At the moment I want to copy *.dll file at install time and also include these in the created "installer".

When I install the program through VisualStudio, everything works like a charm. But when I invoke cpack via the command prompt, no dll files appear in the "Installer". I am not sure what is happening.

 

My code to archive this looks like this:


set(RELATIV_INSTALL_DIRECTORY "bin")
install(TARGETS ${CMAKE_PROJECT_NAME} 
    RUNTIME DESTINATION ${RELATIV_INSTALL_DIRECTORY}
    COMPONENT app)



if(WIN32)
    #set Variable "dirs"

    set(executable_path "\${CMAKE_INSTALL_PREFIX}/${RELATIV_INSTALL_DIRECTORY}/${CMAKE_PROJECT_NAME}.exe")
endif()




install(CODE "
    include (BundleUtilities)
    fixup_bundle(\"${executable_path}\" \"\" \"${DIRS}\")
    "
    COMPONENT app
    )

set(CPACK_OUTPUT_FILE_PREFIX "${CMAKE_BINARY_DIR}/package")

set(CPACK_PACKAGE_NAME "${CMAKE_PROJECT_NAME}")
set(CPACK_PACKAGE_VENDOR "${COMPANY_NAME}")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Installer for ${CMAKE_PROJECT_NAME}.")
set(CPACK_PACKAGE_VERSION_MAJOR "${PROJECT_VERSION_MAJOR}")
set(CPACK_PACKAGE_VERSION_MINOR "${PROJECT_VERSION_MINOR}")
set(CPACK_PACKAGE_VERSION_PATCH "${PROJECT_VERSION_PATCH}")
set(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "company/${CMAKE_PROJECT_NAME}")

set(CPACK_COMPONENTS_ALL app)

set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/license.txt")


if(WIN32)
    set(CPACK_GENERATOR WIX;7Z)
endif()

include(CPack)

 

I hope someone is able to help me with this issue.

Best regards

Sebastian

-- 

Powered by kitware.com/cmake

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

Visit other Kitware open-source projects at https://www.kitware.com/platforms

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

This mailing list is deprecated in favor of https://discourse.cmake.org


[CMake] (No Subject)

2019-11-07 Thread 王振
Hello


Sent from Mail Master-- 

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:
https://cmake.org/mailman/listinfo/cmake


[CMake] (no subject)

2018-06-25 Thread David Henderson via CMake

http://practice.deloresmontez.com
David Henderson

-- 

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:
https://cmake.org/mailman/listinfo/cmake


[CMake] (no subject)

2018-06-21 Thread Darrell Langford via CMake

http://step.otasyn.com
Darrell Langford


-- 

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:
https://cmake.org/mailman/listinfo/cmake


[CMake] (no subject)

2018-05-31 Thread David Henderson via CMake
http://moreover.singlepotatoes.com
David Henderson




-- 

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:
https://cmake.org/mailman/listinfo/cmake


[CMake] (no subject)

2018-05-24 Thread Darrell Langford via CMake
http://excellent.trackthatboat.com

Darrell Langford

-- 

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:
https://cmake.org/mailman/listinfo/cmake


[CMake] (no subject)

2018-04-04 Thread Anthony Zukaitis
 On windows I found an issue with Visual studio where intel fortran was
attempting to preprocess lowercase .f90 files.  Intel's documentation
states that it does not preprocess these files.  Looking into the cmake
source code I found:

in Modules/Platform/Windows-Intel-Fortran line 3:

set(_COMPILE_Fortran " /fpp")

which looks to me like cmake is adding this flag by default to all fortran
files not .F90 vs .f90.  Also we are using our own preprocessor which would
also complicate things.  Can you guys remove the setting of this flag?

Tony
-- 

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:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] (no subject)

2018-01-31 Thread Kris Thielemans
You have to specify the full path to the locally installed cmake, or add its 
location to your PATH environment variables (before anything else)

 

ATB

Kris

From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of kartikay gupta
Sent: 31 January 2018 17:30
To: cmake@cmake.org
Subject: [CMake] (no subject)

 

Hi

 

I want to install cmake 3.10 to my institute high performace computing without 
root access, in local directory. I am able to install it, but still when I call 
the command 'cmake .. -DUSE_CUDA=ON' , it asks to upgrade cmake to atleast 3.5. 

What should be done to load cmake 3.10?

 

 

-- 

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:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] (no subject)

2018-01-31 Thread Marco Schuler
In your cmakelists.txt search for cmake_minumum_required and replace the
version with the version of cmake that you have installed. You might be
lucky and your program compiles.

P.S.: Please do not leave empty the subject of your e-mail...

Am 31.01.2018 18:29 schrieb "kartikay gupta" :

> Hi
>
> I want to install cmake 3.10 to my institute high performace computing
> without root access, in local directory. I am able to install it, but still
> when I call the command 'cmake .. -DUSE_CUDA=ON' , it asks to upgrade cmake
> to atleast 3.5.
> What should be done to load cmake 3.10?
>
>
>
> --
>
> 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:
> https://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:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] (no subject)

2018-01-31 Thread kartikay gupta
yes, I got it. Thanks.

On Wed, Jan 31, 2018 at 11:16 PM, Eric Noulard 
wrote:

>
>
> 2018-01-31 18:29 GMT+01:00 kartikay gupta :
>
>> Hi
>>
>> I want to install cmake 3.10 to my institute high performace computing
>> without root access, in local directory. I am able to install it, but still
>> when I call the command 'cmake .. -DUSE_CUDA=ON' , it asks to upgrade cmake
>> to atleast 3.5.
>> What should be done to load cmake 3.10?
>>
>
> You should use the complete path to your locally installed cmake (or
> change your path).
>
> i.e. something like:
>
> /home/kartikay/local/cmake/bin/cmake .. -DUSE_CUDA=ON
>
>
> --
> Eric
>
-- 

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:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] (no subject)

2018-01-31 Thread Eric Noulard
2018-01-31 18:29 GMT+01:00 kartikay gupta :

> Hi
>
> I want to install cmake 3.10 to my institute high performace computing
> without root access, in local directory. I am able to install it, but still
> when I call the command 'cmake .. -DUSE_CUDA=ON' , it asks to upgrade cmake
> to atleast 3.5.
> What should be done to load cmake 3.10?
>

You should use the complete path to your locally installed cmake (or change
your path).

i.e. something like:

/home/kartikay/local/cmake/bin/cmake .. -DUSE_CUDA=ON


-- 
Eric
-- 

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:
https://cmake.org/mailman/listinfo/cmake


[CMake] (no subject)

2018-01-31 Thread kartikay gupta
Hi

I want to install cmake 3.10 to my institute high performace computing
without root access, in local directory. I am able to install it, but still
when I call the command 'cmake .. -DUSE_CUDA=ON' , it asks to upgrade cmake
to atleast 3.5.
What should be done to load cmake 3.10?
-- 

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:
https://cmake.org/mailman/listinfo/cmake


[CMake] (no subject)

2018-01-23 Thread Budi
How to set up  environment to bulid along with CPPAN ( I want to build
tesseract)
-- 

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:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] (no subject)

2016-12-19 Thread Bo Zhou
Hi,

I'm using ExternalProject_Add to handle this situation with multiple
platforms/targets.

https://cmake.org/cmake/help/v3.7/module/ExternalProject.html

Hope this works for you.

On Mon, Dec 19, 2016 at 1:41 AM, Harshal Singhal  wrote:

> Hello,
>
> I have a VS2013 project with (many sub-projects)many targets (say a b c
> d) in different locations, which all are generated using CMake.  I am
> using one top-level CMakeLists with commadadd_subdirectoriesand a
> CMakeLists file in each of those sub directories. So, Each sub-directory
> has a single target.
>
>  Now, Problem is - I want to change "Platform Toolset" only in one
> (sub-directory) targets (say b) from v120 to v90.
>
> I have tried the following commands in my CMakeLists.txt for that
> particular target (say b) but none of them seem to work: Please help
>
> set(CMAKE_VS_PLATFORM_TOOLSET "v90")
> set(CMAKE_GENERATOR_TOOLSET "v90")
>
> or
>
> add_definitions (-DCMAKE_VS_PLATFORM_TOOLSET = "v90")
> add_definitions (-DMAKE_GENERATOR_TOOLSET = "v90")
>
> or
>
> set_target_properties (b PROPERTIES PLATFORM_TOOLSET "v90")
>
> After trying these command - VS2013 shows the "platform toolset " as
> "v120" for "b target". Maybe it is possible with command line with -T
> option but I want to change the toolset for only one target not for the
> whole project. Any ideas how to solve this problem? or please let me know
> if it is not clear..but please help
>
> --
> Regards
> Harshal Singhal
>
> --
>
> 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://public.kitware.com/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://public.kitware.com/mailman/listinfo/cmake

[CMake] (no subject)

2016-12-18 Thread Harshal Singhal
Hello,

I have a VS2013 project with (many sub-projects)many targets (say a b c
d) in different locations, which all are generated using CMake.  I am
using one top-level CMakeLists with commadadd_subdirectoriesand a
CMakeLists file in each of those sub directories. So, Each sub-directory
has a single target.

 Now, Problem is - I want to change "Platform Toolset" only in one
(sub-directory) targets (say b) from v120 to v90.

I have tried the following commands in my CMakeLists.txt for that
particular target (say b) but none of them seem to work: Please help

set(CMAKE_VS_PLATFORM_TOOLSET "v90")
set(CMAKE_GENERATOR_TOOLSET "v90")

or

add_definitions (-DCMAKE_VS_PLATFORM_TOOLSET = "v90")
add_definitions (-DMAKE_GENERATOR_TOOLSET = "v90")

or

set_target_properties (b PROPERTIES PLATFORM_TOOLSET "v90")

After trying these command - VS2013 shows the "platform toolset " as "v120"
for "b target". Maybe it is possible with command line with -T option but I
want to change the toolset for only one target not for the whole project.
Any ideas how to solve this problem? or please let me know if it is not
clear..but please help

-- 
Regards
Harshal Singhal
-- 

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://public.kitware.com/mailman/listinfo/cmake

Re: [cmake-developers] Subject: [PATCH v2] cmFileCommand: Download continuation support

2016-08-23 Thread Brad King
On 08/18/2016 01:47 PM, Titov Denis wrote:
> +} else if (*i == "RETRY_COUNT") {
> +  ++i;
> +  if (i != args.end()) {
> +retryMaxCount = atoi(i->c_str());
> +  } else {
> +this->SetError("DOWNLOAD missing count for RETRY_COUNT");

Adding tests for these options will be difficult, but we can at least
add tests for the error cases.  Please look at adding cases to

  Tests/RunCMake/file/RunCMakeTest.cmake

for these.  See Tests/RunCMake/README.rst for documentation of how
this test infrastructure works.

Sorry I didn't notice this during my first review.

Thanks,
-Brad
-- 

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://public.kitware.com/mailman/listinfo/cmake-developers


[cmake-developers] Subject: [PATCH v2] cmFileCommand: Download continuation support

2016-08-18 Thread Titov Denis
This patch introduces several options for the file(DOWNLOAD ...) command, which
would be useful in case of dealing with big files or unstable network
connections.

The added options are:

RETRY_COUNT  -- sets maximal amount of download restarts, default value: 1

RETRY_DELAY  -- sets delay before restarting download (in seconds),
default value: 0.0

RETRY_MAX_TIME  -- sets maximal time spent in downloading file
(in seconds), default value: infinity

RETRY_CONTINUE -- if set, makes cmake try to continue downloading of the
existing chunk, instead of discarding it and starting all over. This option is
not set by default

Notes:

The RETRY_CONTINUE option requires server-side support of http partial get
(content-range header).

Unfortunately, I haven't been able to properly test the RETRY_CONTINUE option,
as I didn't have access to the appropriate server. Any help in this area is
encouraged.
---
 Help/command/file.rst|  17 +++
 Source/cmFileCommand.cxx | 271 ---
 2 files changed, 205 insertions(+), 83 deletions(-)

diff --git a/Help/command/file.rst b/Help/command/file.rst
index 256d16d..f1095b7 100644
--- a/Help/command/file.rst
+++ b/Help/command/file.rst
@@ -240,6 +240,23 @@ Additional options to ``DOWNLOAD`` are:
 ``TLS_CAINFO ``
   Specify a custom Certificate Authority file for ``https://`` URLs.
 
+``RETRY_COUNT ``
+  Set maximal amount of download restarts, default value: 1
+
+``RETRY_DELAY ``
+  Set delay before restarting download, default value: 0.0
+
+``RETRY_MAX_TIME ``
+  Set maximal time spent in downloading file, default value: infinity
+
+``RETRY_CONTINUE``
+  If set, makes cmake try to continue downloading of the existing chunk,
+  instead of discarding it and starting all over. This option is not set 
+  by default.
+  
+  Note that this option requires server-side support of http partial get
+  (content-range header).
+
 For ``https://`` URLs CMake must be built with OpenSSL support.  ``TLS/SSL``
 certificates are not checked by default.  Set ``TLS_VERIFY`` to ``ON`` to
 check certificates and/or use ``EXPECTED_HASH`` to verify downloaded content.
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index 835b118..bbe8839 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -34,6 +34,9 @@
 // include sys/stat.h after sys/types.h
 #include 
 
+#include 
+#include 
+
 #include 
 #include 
 #include 
@@ -2481,6 +2484,11 @@ bool 
cmFileCommand::HandleDownloadCommand(std::vector const& args)
   std::string hashMatchMSG;
   CM_AUTO_PTR hash;
   bool showProgress = false;
+  int retryMaxCount = 1;
+  double retryDelayS = 0.0;
+  double retryMaxTimeS = DBL_MAX;
+  bool retryContinue = false;
+  cmsys::ofstream fout;
 
   while (i != args.end()) {
 if (*i == "TIMEOUT") {
@@ -2564,7 +2572,34 @@ bool 
cmFileCommand::HandleDownloadCommand(std::vector const& args)
 return false;
   }
   hashMatchMSG = algo + " hash";
+} else if (*i == "RETRY_COUNT") {
+  ++i;
+  if (i != args.end()) {
+retryMaxCount = atoi(i->c_str());
+  } else {
+this->SetError("DOWNLOAD missing count for RETRY_COUNT");
+return false;
+  }
+} else if (*i == "RETRY_DELAY") {
+  ++i;
+  if (i != args.end()) {
+retryDelayS = atof(i->c_str());
+  } else {
+this->SetError("DOWNLOAD missing time for RETRY_DELAY");
+return false;
+  }
+} else if (*i == "RETRY_MAX_TIME") {
+  ++i;
+  if (i != args.end()) {
+retryMaxTimeS = atof(i->c_str());
+  } else {
+this->SetError("DOWNLOAD missing time for RETRY_MAX_TIME");
+return false;
+  }
+} else if (*i == "RETRY_CONTINUE") {
+  retryContinue = true;
 }
+
 ++i;
   }
   // If file exists already, and caller specified an expected md5 or sha,
@@ -2599,110 +2634,171 @@ bool 
cmFileCommand::HandleDownloadCommand(std::vector const& args)
 return false;
   }
 
-  cmsys::ofstream fout(file.c_str(), std::ios::binary);
-  if (!fout) {
-this->SetError("DOWNLOAD cannot open file for write.");
-return false;
-  }
-
 #if defined(_WIN32) && defined(CMAKE_ENCODING_UTF8)
   url = fix_file_url_windows(url);
 #endif
 
+  cmFileCommandVectorOfChar chunkDebug;
+
   ::CURL* curl;
   ::curl_global_init(CURL_GLOBAL_DEFAULT);
-  curl = ::curl_easy_init();
-  if (!curl) {
-this->SetError("DOWNLOAD error initializing curl.");
-return false;
-  }
 
-  cURLEasyGuard g_curl(curl);
-  ::CURLcode res = ::curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
-  check_curl_result(res, "DOWNLOAD cannot set url: ");
+  ::CURLcode res;
+  int tries = 0;
+  double elapsed = 0.0;
+  time_t start, end;
+  while (tries < retryMaxCount && elapsed <= retryMaxTimeS) {
+++tries;
+time();
+
+curl = ::curl_easy_init();
+if (!curl) {
+  this->SetError("DOWNLOAD error initializing curl.");
+  ::curl_global_cleanup();
+  return false;
+}
 
-  // enable HTTP 

[CMake] (no subject)

2016-07-04 Thread Matthew Adewole
Sir/Ma,
I tried generating NEKTAR++ using CMAKE 3.5.2 but I keep receiving
an error involving "CheckSymbolExists.c" and
"CheckSymbolExists.obj".
I could find "CheckSymbolExists.c" in one of the sub-directories of
CMAKE directory but I couldn't find
"CheckSymbolExists.obj". Please
how can I download "CheckSymbolExists.obj"?
-- 

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://public.kitware.com/mailman/listinfo/cmake


[CMake] (no subject)

2016-04-14 Thread Abhijeet Mhatre via CMake
http://bit.ly/1TOTr0m?675=bebenuci&991==33306881
-- 

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://public.kitware.com/mailman/listinfo/cmake


Re: [CMake] (no subject)

2015-05-22 Thread Dan Liew
Hi,

On 21 May 2015 at 23:00,  lucas.pet...@engilitycorp.com wrote:
 Hello,

 I am trying to compile a code written in C, but using an external library
 that contains C++ functions. I am on a Cray system and everything works if I
 manually link with the cray CC wrapper. When I change the linker language
 with this command:

 set_property(TARGET adh PROPERTY LINKER_LANGUAGE CXX)

 CMake is using the CC wrapper, but adding -lstdc++ to the link line. This
 causes an error. Can anyone tell me how to not get this added library?

Why are you telling CMake that the linker language is C++ in the
target you are building is C code? The C code you are compiling be
must calling into extern C functions in the external library you
mention which means the linker (at compile time) should not need to
know about C++ at all. At runtime the linker needs to know that your
external library depends on C++ but you don't need to be concerned
with this because when your external library was built those
dependencies end up in the shared library.

E.g.

```
$ readelf -d /usr/lib/libboost_program_options.so
...
  TagType Name/Value
...
0x0001 (NEEDED) Shared library: [libstdc++.so.6]
...
```

Does your target build if you just leave  LINKER_LANGUAGE alone (i.e.
set C)? I would expect that it would.

Thanks,
Dan.
-- 

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://public.kitware.com/mailman/listinfo/cmake


Re: [CMake] (no subject)

2015-05-22 Thread Lucas . Pettey
The Cray system requires static libraries, so all symbols are defined during 
the linking process. 

Leaving out the LINKER_LANGUAGE CXX statement, CMake sees all the source files 
as C files, uses the C linker and I get undefined symbol errors. Manually 
linking with the C++ linker but excluding the -lstdc++ flag generates an 
executable.

I really just need CMake to use the C++ linker without adding that flag.

Thanks,

Lucas Pettey, PhD
HPCMP PETTT EQM CTA Lead
ERDC-DSRC OnSite
Vicksburg, MS
512-297-9833 Mobile (preferred)
601-634-2980 Office
lucas.pet...@engilitycorp.com


From: Dan Liew [d...@su-root.co.uk]
Sent: Friday, May 22, 2015 7:19 AM
To: Pettey, Lucas @ EngilityCorp
Cc: cmake@cmake.org
Subject: Re: [CMake] (no subject)

Hi,

On 21 May 2015 at 23:00,  lucas.pet...@engilitycorp.com wrote:
 Hello,

 I am trying to compile a code written in C, but using an external library
 that contains C++ functions. I am on a Cray system and everything works if I
 manually link with the cray CC wrapper. When I change the linker language
 with this command:

 set_property(TARGET adh PROPERTY LINKER_LANGUAGE CXX)

 CMake is using the CC wrapper, but adding -lstdc++ to the link line. This
 causes an error. Can anyone tell me how to not get this added library?

Why are you telling CMake that the linker language is C++ in the
target you are building is C code? The C code you are compiling be
must calling into extern C functions in the external library you
mention which means the linker (at compile time) should not need to
know about C++ at all. At runtime the linker needs to know that your
external library depends on C++ but you don't need to be concerned
with this because when your external library was built those
dependencies end up in the shared library.

E.g.

```
$ readelf -d /usr/lib/libboost_program_options.so
...
  TagType Name/Value
...
0x0001 (NEEDED) Shared library: [libstdc++.so.6]
...
```

Does your target build if you just leave  LINKER_LANGUAGE alone (i.e.
set C)? I would expect that it would.

Thanks,
Dan.
-- 

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://public.kitware.com/mailman/listinfo/cmake


[CMake] (no subject)

2015-05-21 Thread Lucas . Pettey
Hello,

I am trying to compile a code written in C, but using an external library that 
contains C++ functions. I am on a Cray system and everything works if I 
manually link with the cray CC wrapper. When I change the linker language with 
this command:

set_property(TARGET adh PROPERTY LINKER_LANGUAGE CXX)

CMake is using the CC wrapper, but adding -lstdc++ to the link line. This 
causes an error. Can anyone tell me how to not get this added library?

Thanks,

Lucas Pettey, PhD
HPCMP PETTT EQM CTA Lead
ERDC-DSRC OnSite
Vicksburg, MS
512-297-9833 Mobile (preferred)
601-634-2980 Office
lucas.pet...@engilitycorp.com
-- 

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://public.kitware.com/mailman/listinfo/cmake

Re: [CMake] (no subject)

2015-05-12 Thread Martin Weber
Am Dienstag, 12. Mai 2015, 20:32:48 schrieb Uma Devi:
 dear cmake user
 i am not able to updaate the cmake in one of my linux system. how can i
 update the cmake in centos

Maybe because CentOS is still at cmake v 2.6?

Martin

-- 
Cd wrttn wtht vwls s mch trsr.


-- 

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://public.kitware.com/mailman/listinfo/cmake


Re: [CMake] (no subject)

2015-05-12 Thread J. Caleb Wherry
Uma,

There are a few ways to do this. As Martin said, CentOS has an ancient
version of CMake that ships with it and you can't update it with yum. So,
you have 3 options:

1. Use the version shipped with CentOS and deal with it being old.
2. Download the latest binary release script/tarball:
http://www.cmake.org/download/
3. Download, compile, and install from source: http://www.cmake.org/install/

I usually go with option 2 and get the shell script from the download page
for my architecture, it works pretty well. Hope that helps!

-Caleb

On Tue, May 12, 2015 at 4:17 PM, Martin Weber fifteenknots...@gmail.com
wrote:

 Am Dienstag, 12. Mai 2015, 20:32:48 schrieb Uma Devi:
  dear cmake user
  i am not able to updaate the cmake in one of my linux system. how can i
  update the cmake in centos

 Maybe because CentOS is still at cmake v 2.6?

 Martin

 --
 Cd wrttn wtht vwls s mch trsr.


 --

 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://public.kitware.com/mailman/listinfo/cmake




-- 
J. Caleb Wherry
*Scientific Software Engineer*

http://www.calebwherry.com
http://www.calebwherry.com
+1 (615) 708-5651
calebwhe...@gmail.com
-- 

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://public.kitware.com/mailman/listinfo/cmake

[CMake] (no subject)

2015-05-12 Thread Uma Devi
dear cmake user
i am not able to updaate the cmake in one of my linux system. how can i
update the cmake in centos
-- 

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://public.kitware.com/mailman/listinfo/cmake

[CMake] (no subject)

2015-04-28 Thread Lukast dev
Hello guys,

I use multi-configuration generator (MSVC 2008) and I need to create
one solution containing two configurations for one library target N:

For build type Debug target N is compiled as static library
For build type Release target N is compiled as shared library

Something like this, but I know that I can't use CMAKE_BUILD_TYPE
variable when I use multi-configuration generator:

cmake_minimum_required (VERSION 2.8.11)
project (hello)
if(${CMAKE_BUILD_TYPE} STREQUAL Debug)
add_library(hello STATIC main.cpp)
elseif(${CMAKE_BUILD_TYPE} STREQUAL Release)
add_library(hello SHARED main.cpp)
endif()

I already used CMAKE_CXX_FLAGS_DEBUG and CMAKE_CXX_FLAGS_RELEASE
to distinguish some attributes between Debug and Release, but I can't
figure it out in case of the library type (SHARED vs STATIC).

Any ideas how to achieve it?

Thanks
Lukas
-- 

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://public.kitware.com/mailman/listinfo/cmake


[CMake] (no subject)

2015-03-19 Thread Tobias Becker
I have written a cmake tool which allows you to modify CMakeLists files
from the command line. It is written in pure cmake leverages my cmake token
parser/ reflection functions which I added to cmakepp (a free, universial,
open source, pure cmake function library)

http://thetoeb.de/2015/03/19/cmakepp-reflecting-and-manipulating-cmakelists/

If anyone is interested and has suggestion visit me on
https://github.com/toeb/cmakepp



Cheers
Tobi
-- 

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://public.kitware.com/mailman/listinfo/cmake

Re: [CMake] (no subject)

2014-01-02 Thread Magnus Therning
On Thu, Jan 02, 2014 at 12:14:38AM -0500, Matt Wilbur wrote:
 With a bit of thought and source code reading, I sorted this out.
 Let me know if you'd like me to post my answer to my own question.

Yes, please do.

I'm sure you've found yourself in the very irritating situation where
you're looking for the answer to some question, but all you can find
is other people asking the same question in various fora.  By
answering your own question you'll help other people avoid that
irritating situation when they are looking around for an answer to
this particular question. :)

/M

-- 
Magnus Therning  OpenPGP: 0xAB4DFBA4 
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe   http://therning.org/magnus

I invented the term Object-Oriented, and I can tell you I did not have
C++ in mind.
 -- Alan Kay


pgplTa5tYVr0J.pgp
Description: PGP 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] (no subject)

2014-01-02 Thread Matt Wilbur
On Thu, Jan 2, 2014 at 10:20 AM, Magnus Therning mag...@therning.orgwrote:

 On Thu, Jan 02, 2014 at 12:14:38AM -0500, Matt Wilbur wrote:
  With a bit of thought and source code reading, I sorted this out.
  Let me know if you'd like me to post my answer to my own question.

 Yes, please do.

 I'm sure you've found yourself in the very irritating situation where
 you're looking for the answer to some question, but all you can find
 is other people asking the same question in various fora.  By
 answering your own question you'll help other people avoid that
 irritating situation when they are looking around for an answer to
 this particular question. :)


Very good point.

So, the flaw in my understanding was that the ONLY_CMAKE_FIND_ROOT_PATH |
NO_CMAKE_FIND_ROOT_PATH | CMAKE_FIND_ROOT_PATH_BOTH had no effect if
NO_DEFAULTS is used.

NO_DEFAULTS only affects the construction of the list of paths to be
searched.  i.e. NO_DEFAULTS means the list of paths to be searched consists
only of the paths specified by the PATHS argument (maybe others - haven't
looked into that one).  Point is, all the find_XXX commands construct a
list of paths to be searched, consisting of what is specified in the
command plus maybe some other paths.

The effect of ONLY_CMAKE_FIND_ROOT_PATH | NO_CMAKE_FIND_ROOT_PATH |
CMAKE_FIND_ROOT_PATH_BOTH (and, similarly CMAKE_FIND_ROOT_PATH_MODE_*) is
to determine how that list of search paths is further processed to create
the final list of paths searched by CMake.

Call the initial list of paths to be searched InitialSearchPaths.  Call
RerootedSearchPaths the result of prepending each element of
CMAKE_FIND_ROOT to each element of InitialSearchPaths.  In Clojure (since
I've been playing with it in my personal time and it succinctly captures
the list processing):

(flatten (for [r CMAKE_FIND_ROOT] (map #(str r %) InitialSearchPaths)))

The actual list of search paths, SearchPaths would be one of

IntitalSearchPaths
RerootedSearchPaths
(concat RerootedSearchPaths  IntitalSearchPaths)
--

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] (no subject)

2014-01-01 Thread Matt Wilbur
Hello CMakers,

I’m seeing behavior with find_path that seems to be inconsistent with the
cmake documentation.  According to the documentation (as I understand it),
when NO_DEFAULT_PATH is set, the CMAKE_FIND_ROOT_PATH should have no impact
on where find_path looks.  However it seems to be having a big impact when
the CMAKE_TOOLCHAIN_FILE is used.

You’ll see between Experiment 2 and Experiment 3 below, where the only
difference is setting

set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

and this means the difference between success and failure of find_path,
even though CMAKE_FIND_ROOT_PATH should have no impact if NO_DEFAULT_PATH
is used.

Furthermore CMAKE_FIND_ROOT_PATH_MODE_INCLUDE seems to have this impact
only when cross-compiling, not when

Thoughts?  Is this behavior seem odd to anyone else?

Matt


Experiment 1:

CMakeLists.txt:

cmake_minimum_required(VERSION 2.8)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
find_path(ZLIB_INCLUDE_DIR NAMES zlib.h PATHS
/home/vagrant/Projects/cmake-test/zlib-1.2.8 NO_DEFAULT_PATH)
message(Found: ${ZLIB_INCLUDE_DIR}”)

Output from cmake:

cmake ..

-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
Found: /home/vagrant/Projects/cmake-test/zlib-1.2.8
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/vagrant/Projects/another-cmake-test/build

Experiment 2:

CMakeLists.txt:  same as above

Toolchain file:

# this one is important
SET(CMAKE_SYSTEM_NAME Linux)

# specify the cross compiler
set(CMAKE_C_COMPILER /opt/freescale-2010.09/bin/powerpc-linux-gnu-gcc)
set(CMAKE_CXX_COMPILER /opt/freescale-2010.09/bin/powerpc-linux-gnu-g++)

# where is the target environment
set(CMAKE_FIND_ROOT_PATH /opt/freescale-2010.09)

# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

Output from cmake:

-- The C compiler identification is GNU 4.5.1
-- The CXX compiler identification is GNU 4.5.1
-- Check for working C compiler:
/opt/freescale-2010.09/bin/powerpc-linux-gnu-gcc
-- Check for working C compiler:
/opt/freescale-2010.09/bin/powerpc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler:
/opt/freescale-2010.09/bin/powerpc-linux-gnu-g++
-- Check for working CXX compiler:
/opt/freescale-2010.09/bin/powerpc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
Found: ZLIB_INCLUDE_DIR-NOTFOUND
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/vagrant/Projects/another-cmake-test/build

Experiment 3:

CMakeLists.txt:

cmake_minimum_required(VERSION 2.8)

find_path(ZLIB_INCLUDE_DIR NAMES zlib.h PATHS
/home/vagrant/Projects/cmake-test/zlib-1.2.8 NO_DEFAULT_PATH)
message(Found: ${ZLIB_INCLUDE_DIR}”)

Toolchain file:

 this one is important
SET(CMAKE_SYSTEM_NAME Linux)

# specify the cross compiler
set(CMAKE_C_COMPILER /opt/freescale-2010.09/bin/powerpc-linux-gnu-gcc)
set(CMAKE_CXX_COMPILER /opt/freescale-2010.09/bin/powerpc-linux-gnu-g++)

# where is the target environment
set(CMAKE_FIND_ROOT_PATH /opt/freescale-2010.09)

# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)

Output from cmake:

cmake -DCMAKE_TOOLCHAIN_FILE=../TC-powerpc-e500v2.cmake ..

-- The C compiler identification is GNU 4.5.1
-- The CXX compiler identification is GNU 4.5.1
-- Check for working C compiler:
/opt/freescale-2010.09/bin/powerpc-linux-gnu-gcc
-- Check for working C compiler:
/opt/freescale-2010.09/bin/powerpc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler:
/opt/freescale-2010.09/bin/powerpc-linux-gnu-g++
-- Check for working CXX compiler:
/opt/freescale-2010.09/bin/powerpc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
Found: /home/vagrant/Projects/cmake-test/zlib-1.2.8
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/vagrant/Projects/another-cmake-test/build
--

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: 

Re: [CMake] (no subject)

2014-01-01 Thread Matt Wilbur
With a bit of thought and source code reading, I sorted this out.  Let me know 
if you'd like me to post my answer to my own question.

Matt

 On Jan 1, 2014, at 11:13 AM, Matt Wilbur wilb...@gmail.com wrote:
 
 Hello CMakers,
 
 I’m seeing behavior with find_path that seems to be inconsistent with the 
 cmake documentation.  According to the documentation (as I understand it), 
 when NO_DEFAULT_PATH is set, the CMAKE_FIND_ROOT_PATH should have no impact 
 on where find_path looks.  However it seems to be having a big impact when 
 the CMAKE_TOOLCHAIN_FILE is used.  
 
 You’ll see between Experiment 2 and Experiment 3 below, where the only 
 difference is setting 
 
 set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
 
 and this means the difference between success and failure of find_path, even 
 though CMAKE_FIND_ROOT_PATH should have no impact if NO_DEFAULT_PATH is used.
 
 Furthermore CMAKE_FIND_ROOT_PATH_MODE_INCLUDE seems to have this impact only 
 when cross-compiling, not when 
 
 Thoughts?  Is this behavior seem odd to anyone else?
 
 Matt
 
 
 Experiment 1:
 
 CMakeLists.txt:
 
 cmake_minimum_required(VERSION 2.8)
 set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
 find_path(ZLIB_INCLUDE_DIR NAMES zlib.h PATHS 
 /home/vagrant/Projects/cmake-test/zlib-1.2.8 NO_DEFAULT_PATH)
 message(Found: ${ZLIB_INCLUDE_DIR}”)
 
 Output from cmake:
 
 cmake ..
 
 -- The C compiler identification is GNU 4.6.3
 -- The CXX compiler identification is GNU 4.6.3
 -- Check for working C compiler: /usr/bin/cc
 -- Check for working C compiler: /usr/bin/cc -- works
 -- Detecting C compiler ABI info
 -- Detecting C compiler ABI info - done
 -- Check for working CXX compiler: /usr/bin/c++
 -- Check for working CXX compiler: /usr/bin/c++ -- works
 -- Detecting CXX compiler ABI info
 -- Detecting CXX compiler ABI info - done
 Found: /home/vagrant/Projects/cmake-test/zlib-1.2.8
 -- Configuring done
 -- Generating done
 -- Build files have been written to: 
 /home/vagrant/Projects/another-cmake-test/build
 
 Experiment 2:
 
 CMakeLists.txt:  same as above
 
 Toolchain file: 
 
 # this one is important
 SET(CMAKE_SYSTEM_NAME Linux)
 
 # specify the cross compiler
 set(CMAKE_C_COMPILER /opt/freescale-2010.09/bin/powerpc-linux-gnu-gcc)
 set(CMAKE_CXX_COMPILER /opt/freescale-2010.09/bin/powerpc-linux-gnu-g++)
 
 # where is the target environment
 set(CMAKE_FIND_ROOT_PATH /opt/freescale-2010.09)
 
 # search for programs in the build host directories
 SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
 # for libraries and headers in the target directories
 SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
 SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
 
 Output from cmake:
 
 -- The C compiler identification is GNU 4.5.1
 -- The CXX compiler identification is GNU 4.5.1
 -- Check for working C compiler: 
 /opt/freescale-2010.09/bin/powerpc-linux-gnu-gcc
 -- Check for working C compiler: 
 /opt/freescale-2010.09/bin/powerpc-linux-gnu-gcc -- works
 -- Detecting C compiler ABI info
 -- Detecting C compiler ABI info - done
 -- Check for working CXX compiler: 
 /opt/freescale-2010.09/bin/powerpc-linux-gnu-g++
 -- Check for working CXX compiler: 
 /opt/freescale-2010.09/bin/powerpc-linux-gnu-g++ -- works
 -- Detecting CXX compiler ABI info
 -- Detecting CXX compiler ABI info - done
 Found: ZLIB_INCLUDE_DIR-NOTFOUND
 -- Configuring done
 -- Generating done
 -- Build files have been written to: 
 /home/vagrant/Projects/another-cmake-test/build
 
 Experiment 3:
 
 CMakeLists.txt:
 
 cmake_minimum_required(VERSION 2.8)
 
 find_path(ZLIB_INCLUDE_DIR NAMES zlib.h PATHS 
 /home/vagrant/Projects/cmake-test/zlib-1.2.8 NO_DEFAULT_PATH)
 message(Found: ${ZLIB_INCLUDE_DIR}”)
 
 Toolchain file:
 
  this one is important
 SET(CMAKE_SYSTEM_NAME Linux)
 
 # specify the cross compiler
 set(CMAKE_C_COMPILER /opt/freescale-2010.09/bin/powerpc-linux-gnu-gcc)
 set(CMAKE_CXX_COMPILER /opt/freescale-2010.09/bin/powerpc-linux-gnu-g++)
 
 # where is the target environment
 set(CMAKE_FIND_ROOT_PATH /opt/freescale-2010.09)
 
 # search for programs in the build host directories
 SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
 # for libraries and headers in the target directories
 SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
 
 Output from cmake:
 
 cmake -DCMAKE_TOOLCHAIN_FILE=../TC-powerpc-e500v2.cmake ..
 
 -- The C compiler identification is GNU 4.5.1
 -- The CXX compiler identification is GNU 4.5.1
 -- Check for working C compiler: 
 /opt/freescale-2010.09/bin/powerpc-linux-gnu-gcc
 -- Check for working C compiler: 
 /opt/freescale-2010.09/bin/powerpc-linux-gnu-gcc -- works
 -- Detecting C compiler ABI info
 -- Detecting C compiler ABI info - done
 -- Check for working CXX compiler: 
 /opt/freescale-2010.09/bin/powerpc-linux-gnu-g++
 -- Check for working CXX compiler: 
 /opt/freescale-2010.09/bin/powerpc-linux-gnu-g++ -- works
 -- Detecting CXX compiler ABI info
 -- Detecting CXX compiler ABI info - done
 Found: /home/vagrant/Projects/cmake-test/zlib-1.2.8
 -- Configuring done
 -- Generating 

[CMake] (no subject)

2013-08-29 Thread Thomas Taranowski
I'm running into somewhat of an arcane problem at the moment.

The setup:
* I have a source file that is autogenerated.  In this case it is
event_log_msg_if.ac.cpp.
* I have marked the cpp as autogenerated via the
'set_source_files_properties' api
* I have an add_library(foo /path/to/file/event_log_msg_if.ac.cpp)

Any idea why I'm getting an No rule to make target for this? It looks
like cmake doesn't have a rule to build .cpp files.  Could the .ac.cpp
cause an issue?


Excerpt of output:

Scanning dependencies of target event_log
[ 65%] Building CXX object
event_log/CMakeFiles/event_log.dir/local/ac/event_log_msg_if.ac.cpp.o
make[2]: *** No rule to make target
`../event_log/event_log/local/ac/event_log_msg_if.ac.cpp', needed by
`event_log/CMakeFiles/event_log.dir/event_log/local/ac/event_log_msg_if.ac.cpp.o'.
 Stop.
make[1]: *** [event_log/CMakeFiles/event_log.dir/all] Error 2



Thomas Taranowski | 425-442-9209 | skype: thomas.taranowski |
baringforge.com
--

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] (no subject)

2013-08-14 Thread Ruqayya Raza
I have tried to compile CMAKE gui using pre built binaries but I keep
getting this error and no one so far has been able to help me out. Please
please help me in this regard!

CMake Warning at /OpenCV2.3/cmake/OpenCVConfig.cmake:153 (message):

Found OpenCV 2.4.3 Windows Super Pack but it has not binaries compatible

with your configuration.

You should manually point CMake variable OpenCV_DIR to your build of OpenCV
library.

Call Stack (most recent call first):

CMakeLists.txt:2 (find_package)

CMake Error at CMakeLists.txt:2 (find_package):

Found package configuration file:

/OpenCV2.3/cmake/OpenCVConfig.cmake

but it set OpenCV_FOUND to FALSE so package OpenCV is considered to be

NOT FOUND.

Configuring incomplete, errors occurred!
--

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] (no subject)

2013-01-04 Thread Parchet Michaël
Hello,

 

I would like set the default compiler as mingw for cmake.

 

Now, If I try to use cmake from windows command line like below.

 

Cmake CMakeList.

 

I have the a output such  as attachement.

 

 

Can you help me please.

 

Best regards

 

mparchet

CMake Warning at CMakeLists.txt:1 (project):
  To use the NMake generator, cmake must be run from a shell that can use the
  compiler cl from the command line.  This environment does not contain
  INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to
  work.


-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: cl
CMake Warning at CMakeLists.txt:2 (PROJECT):
  To use the NMake generator, cmake must be run from a shell that can use the
  compiler cl from the command line.  This environment does not contain
  INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to
  work.


CMake Error: your C compiler: cl was not found.   Please set CMAKE_C_COMPILER 
to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working C compiler: cl -- broken
CMake Error at C:/Program Files/CMake 
2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler cl is not able to compile a simple test program.

  It fails with the following output:

   

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:1 (project)


CMake Error: your C compiler: cl was not found.   Please set CMAKE_C_COMPILER 
to a valid compiler path or name.
CMake Error: your CXX compiler: cl was not found.   Please set 
CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Configuring incomplete, errors occurred!
--

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

[CMake] (no subject)

2012-11-28 Thread katie outram
I have a problem where I have a build that depends on the output from
another build.   If I pass cmake the value of the libraries I want to
link against, I can see the libraries through my find script without a
problem using the find_library command.My problem is that I don't want
to make the user always tell me the name of the library before I can do the
compile since I am looking to automate the final build.

My first build creates a directory
build
--

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

[CMake] (no subject)

2012-10-24 Thread Nico Schlömer
Hi all,

I'd like to create a shared library that uses another toolkit Foobar,
so within the main CMakeLists.txt I write

TARGET_LINK_LIBRARIES(mylib ${Foobar_LIBRARIES})

to avoid undefined symbols (I link with -Wl,-no-undefined).
${Foobar_LIBRARIES} consists of {foobarA;foobarB;foobarC}.
This pulls in all Foobar libraries on the link like. Moreover, the
respective src/CMakeFiles/mylib.dir/build.make contains

 *snip* 
[...]
# External object files for target nosh
nosh_EXTERNAL_OBJECTS =

src/libmylib.so.11.0.0: src/CMakeFiles/mylib.dir/mysource1.cpp.o
src/libmylib.so.11.0.0: src/CMakeFiles/mylib.dir/mysource2.cpp.o
src/libmylib.so.11.0.0: src/CMakeFiles/mylib.dir/mysource3.cpp.o
src/libmylib.so.11.0.0: src/CMakeFiles/mylib.dir/build.make
src/libmylib.so.11.0.0: /usr/lib/libfoobarA.so.11
src/libmylib.so.11.0.0: /usr/lib/libfoobarB.so.11
src/libmylib.so.11.0.0: /usr/lib/libfoobarC.so.11
src/libmylib.so.11.0.0: /usr/lib/liblapack.so
src/libmylib.so.11.0.0: /usr/lib/libblas.so
src/libmylib.so.11.0.0: /usr/lib/libnetcdf.so
src/libmylib.so.11.0.0: src/CMakeFiles/mylib.dir/link.txt

[...]
 *snap* 

CMake correctly pulls in the libraries BLAS, LAPACK, and netCDF on
which Foobar depends, without me having to specify those in mylib.
Nice!
I'm having one problem with this though:
ldd reveals that libfoobar*.so contains dynamic links to the
respective libraries with versioning info, i.e.,

$ ldd /usr/lib/libfoobarA.so.11 | grep netcdf
libnetcdf.so.7 = /usr/lib/libnetcdf.so.7 (0x7f1fe33da000)
$

In fact, there is no library by the exact name

/usr/lib/libnetcdf.so

installed. The same goes for BLAS and LAPACK.

I'm now wondering how CMake generates the information in
src/CMakeFiles/mylib.dir/build.make, and how to fix this.

Hints, anyone?

--Nico
--

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] (no subject)

2012-06-27 Thread Michele Santullo

On 06/27/2012 03:21 PM, David Henderson wrote:

http://www.referralrecord.com/wp-content/themes/twentyten/rgpas.html


--

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



You just gave away so many informations about yourself you have to hope 
no one reading your emails will make a bad use of them.
For your own good, if you read this please switch to a box that is not 
compromised and give up on any vulnerable software that might have 
caused your problem.

Good luck!
Michele
--

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] (no subject)

2012-06-25 Thread David Cole
This is reported as:

  http://public.kitware.com/Bug/view.php?id=12878

Monitor that issue to see when it will be fixed.


Thx,
David


On Fri, Jun 22, 2012 at 5:46 PM, George Petasis petas...@yahoo.gr wrote:
 I had this warning under Fedora 17, 64 bit:

 -- Searching for Java...
 CMake Warning at /usr/share/cmake/Modules/FindJava.cmake:120 (message):
   regex not supported: java version 1.7.0_03-icedtea

   OpenJDK Runtime Environment (fedora-2.2.1.fc17.8-x86_64)

   OpenJDK 64-Bit Server VM (build 23.0-b21, mixed mode).  Please report
 Call Stack (most recent call first):
   CMakeLists.txt:139 (FIND_PACKAGE)

 George

 --

 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
--

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


[CMake] (no subject)

2012-06-22 Thread George Petasis
I had this warning under Fedora 17, 64 bit:


-- Searching for Java...
CMake Warning at /usr/share/cmake/Modules/FindJava.cmake:120 (message):
  regex not supported: java version 1.7.0_03-icedtea

  OpenJDK Runtime Environment (fedora-2.2.1.fc17.8-x86_64)

  OpenJDK 64-Bit Server VM (build 23.0-b21, mixed mode).  Please report
Call Stack (most recent call first):
  CMakeLists.txt:139 (FIND_PACKAGE)

George--

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

[CMake] (no subject)

2011-11-22 Thread YangXi
http://nobiofuel.com/affiliate/plugins/SignupActionCommissions/smmfkro.htm
  --

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

[CMake] (no subject)

2011-11-17 Thread YangXi
http://label.heavyartillery.us/packages/email_list_signup/single_pages/dashboard/reports/fkgfhdol.htm
  --

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

[CMake] (no subject)

2011-11-17 Thread swati choudhary
http://11thrru.org/admin/poefdg.htm
--

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


[CMake] (no subject)

2011-10-31 Thread YangXi
http://ads.itgfiles.com/plugins/maintenanceStatisticsTask/oxMarketMaintenance/scripts/woflisv.htm
  --

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

[CMake] (no subject)

2011-09-28 Thread Ju-Lian Kwan

Hello,
I'm having trouble getting FIND_PATH to work in a certain case. I have it 
working in other Find*.cmake files, but in one of my files I cannot seem to get 
it to cooperate and cmake --trace/--debug-output don't seem to provide any 
useful information for debugging FIND_PATH.
The problem is that cmake generates a NOTFOUND error when using the following 
cmake file (DEV_ROOT is set to /home/jlk/dev):
FindTinyXML.cmake:
FIND_PATH( TinyXML_INCLUDE_DIRSNAMES   tinyxml.hPATHS   
$ENV{DEV_ROOT}/externals/tinyxml )
MESSAGE( STATUS ${TinyXML_INCLUDE_DIRS} )MESSAGE( STATUS 
$ENV{DEV_ROOT}/externals/tinyxml )
FIND_LIBRARY( TinyXML_LIBRARY_DebugNAMES   tinyxml  
  PATHS   $ENV{DEV_ROOT}/externals/tinyxml/Debug )
FIND_LIBRARY( TinyXML_LIBRARY_ReleaseNAMES   tinyxml
PATHS   $ENV{DEV_ROOT}/externals/tinyxml/Release )
SET( TinyXML_FOUND FALSE )
IF( TinyXML_INCLUDE_DIRS )SET( TinyXML_FOUND TRUE )SET( 
TinyXML_LIBRARIES ${TinyXML_LIBRARIES}debug   
${TinyXML_LIBRARY_Debug}optimized   ${TinyXML_LIBRARY_Release} 
)ENDIF()
The two MESSAGE outputs from cmake are:
-- TinyXML_INCLUDE_DIRS-NOTFOUND-- /home/jlk/dev/externals/tinyxml

The part I do not understand is if I execute an ls command like so: ls -la 
/home/jlk/dev/externals/tinyxml/tinyxml.h
The output I get is: -rw-r--r-- 1 jlk jlk 64574 2011-09-27 02:58 
/home/jlk/dev/externals/tinyxml/tinyxml.h
Which, as far as I understand it, is the file that cmake should be looking for. 
Does anyone know what could be wrong? As I said, I have other Find*.cmake files 
that work and I just can't seem to spot the problem.




  --

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] (no subject)

2011-09-28 Thread Rolf Eike Beer

 Hello,
 I'm having trouble getting FIND_PATH to work in a certain case. I have it
 working in other Find*.cmake files, but in one of my files I cannot seem
 to get it to cooperate and cmake --trace/--debug-output don't seem to
 provide any useful information for debugging FIND_PATH.
 The problem is that cmake generates a NOTFOUND error when using the
 following cmake file (DEV_ROOT is set to /home/jlk/dev):
 FindTinyXML.cmake:
 FIND_PATH( TinyXML_INCLUDE_DIRSNAMES   tinyxml.h
 PATHS   $ENV{DEV_ROOT}/externals/tinyxml )
 MESSAGE( STATUS ${TinyXML_INCLUDE_DIRS} )MESSAGE( STATUS
 $ENV{DEV_ROOT}/externals/tinyxml )
 FIND_LIBRARY( TinyXML_LIBRARY_DebugNAMES   tinyxml
PATHS   $ENV{DEV_ROOT}/externals/tinyxml/Debug )
 FIND_LIBRARY( TinyXML_LIBRARY_ReleaseNAMES   tinyxml
  PATHS   $ENV{DEV_ROOT}/externals/tinyxml/Release )
 SET( TinyXML_FOUND FALSE )
 IF( TinyXML_INCLUDE_DIRS )SET( TinyXML_FOUND TRUE )SET(
 TinyXML_LIBRARIES ${TinyXML_LIBRARIES}debug
 ${TinyXML_LIBRARY_Debug}optimized   ${TinyXML_LIBRARY_Release}
 )ENDIF()
 The two MESSAGE outputs from cmake are:
 -- TinyXML_INCLUDE_DIRS-NOTFOUND-- /home/jlk/dev/externals/tinyxml

 The part I do not understand is if I execute an ls command like so: ls -la
 /home/jlk/dev/externals/tinyxml/tinyxml.h
 The output I get is: -rw-r--r-- 1 jlk jlk 64574 2011-09-27 02:58
 /home/jlk/dev/externals/tinyxml/tinyxml.h
 Which, as far as I understand it, is the file that cmake should be looking
 for. Does anyone know what could be wrong? As I said, I have other
 Find*.cmake files that work and I just can't seem to spot the problem.

My first attempt would be to run the cmake process trough strace -f
-eopen,stat cmake ... and look which files it is actually looking at.

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


[CMake] (no subject)

2011-06-13 Thread Gabriel Nützi
Hello
 
 I have the following stupid problem with cmake:
 
 I want 
 
 CMAKE_BUILD_TOOL or the deprecated CMAKE_MAKE_PROGRAM to be set to 
 
 /usr/bin/make -j12    (for multithreaded build)
 
 how can we pass arguments to the build tool (make)?
 in eclipse that does not work because in the .cproject file
 there is a target now defined as 
 
 target name=: all  path= 
targetID=org.eclipse.cdt.make.MakeTargetBuilder
                         buildCommand/usr/bin/make 
-j12/buildCommand
                         
buildTargetrebuild_cache/buildTarget
                         stopOnErrortrue/stopOnError
                         
useDefaultCommandfalse/useDefaultCommand
                         
runAllBuilderstrue/runAllBuilders
  /target
 which can not be executed!!
 but to correctly execute the target in eclipse it should be:
 
 target name=: rebuild_cache path= 
targetID=org.eclipse.cdt.make.MakeTargetBuilder
                         
buildCommand/usr/bin/make/buildCommand
                         buildArguments 
-j12/buildArguments
                         
buildTargetrebuild_cache/buildTarget
                         stopOnErrortrue/stopOnError
                         
useDefaultCommandfalse/useDefaultCommand
                         
runAllBuilderstrue/runAllBuilders
 /target
 

Can anyone help me how to do this properly?

thanks alot!


-- 
NEU: FreePhone - kostenlos mobil telefonieren!  
Jetzt informieren: http://www.gmx.net/de/go/freephone
___
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] (no subject)

2011-06-13 Thread Alexander Neundorf
On Monday 13 June 2011, Gabriel Nützi wrote:
 Hello
 
  I have the following stupid problem with cmake:
 
  I want
 
  CMAKE_BUILD_TOOL or the deprecated CMAKE_MAKE_PROGRAM to be set to
 
  /usr/bin/make -j12(for multithreaded build)
 
  how can we pass arguments to the build tool (make)?
  in eclipse that does not work because in the .cproject file
  there is a target now defined as
 
  target name=: all  path=
 targetID=org.eclipse.cdt.make.MakeTargetBuilder
  buildCommand/usr/bin/make
 -j12/buildCommand
 
 buildTargetrebuild_cache/buildTarget
  stopOnErrortrue/stopOnError
 
 useDefaultCommandfalse/useDefaultCommand
 
 runAllBuilderstrue/runAllBuilders
   /target
  which can not be executed!!
  but to correctly execute the target in eclipse it should be:
 
  target name=: rebuild_cache path=
 targetID=org.eclipse.cdt.make.MakeTargetBuilder
 
 buildCommand/usr/bin/make/buildCommand
  buildArguments
 -j12/buildArguments
 
 buildTargetrebuild_cache/buildTarget
  stopOnErrortrue/stopOnError
 
 useDefaultCommandfalse/useDefaultCommand
 
 runAllBuilderstrue/runAllBuilders
  /target
 
 
 Can anyone help me how to do this properly?

Are you using the Eclipse project generator ?
Then you can set the variable CMAKE_ECLIPSE_MAKE_ARGUMENTS to -j12 via 
cmake-gui or ccmake.

Alex
___
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] (no subject)

2011-06-12 Thread Michael Hertling
On 06/06/2011 10:32 PM, dfurt...@cox.net wrote:
 Does CMake provide a way to get the list of objects going into a given 
 target? I need such a list for a PRE_LINK custom command.

With the Makefile generators, you might use the RULE_LAUNCH_COMPILE
target property combined with a shell script to achieve your goal:

# CMakeLists.txt:
CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR)
PROJECT(OBJECTS C)
SET(CMAKE_VERBOSE_MAKEFILE ON)
FILE(WRITE ${CMAKE_BINARY_DIR}/f.c void f(void){}\n)
FILE(WRITE ${CMAKE_BINARY_DIR}/g.c void g(void){}\n)
FILE(WRITE ${CMAKE_BINARY_DIR}/h.c void h(void){}\n)
FILE(WRITE ${CMAKE_BINARY_DIR}/main.c int main(void){return 0;}\n)
ADD_EXECUTABLE(main main.c f.c g.c h.c)
SET_TARGET_PROPERTIES(main PROPERTIES
RULE_LAUNCH_COMPILE sh ${CMAKE_SOURCE_DIR}/objects.sh OBJECT --)
ADD_CUSTOM_COMMAND(TARGET main PRE_LINK
COMMAND @cat objects.txt COMMENT Object files of target main:)

# objects.sh:
touch objects.txt
while [ $1 != -- ]; do
if ! grep -q $1 objects.txt; then
echo $1  objects.txt
fi
shift
done
shift
exec $@

The objects.sh script collects all object files of the main target in
addition to compiling the respective source file, and the PRE_LINK
custom command may retrieve them from the objects.txt file later.

'hope that helps.

Regards,

Michael

PS: Please use a descriptive subject in your postings.
___
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] (no subject)

2011-06-07 Thread Yuri Timenkov
Unfortunately you can get only list of source files (using SOURCES target's
property). The location of object files depends on Generator (e.g. for
VisualStudio they will be put into configuration-specific location).

On Tue, Jun 7, 2011 at 12:32 AM, dfurt...@cox.net wrote:

 Does CMake provide a way to get the list of objects going into a given
 target? I need such a list for a PRE_LINK custom command.
 ___
 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

___
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

[CMake] (no subject)

2011-06-06 Thread dfurtney
Does CMake provide a way to get the list of objects going into a given target? 
I need such a list for a PRE_LINK custom command.
___
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


[CMake] (no subject)

2010-12-01 Thread Gary%20G.%20Little%20%40%20comcast
I have a Visual Studio 2010 solution and I am trying to set the 
Configuration Properties - General - Platform Toolset of one 
particular project to use V90 to allow this project to build with the VS 
2008 tool set. I followed an older thread and tried this: 

set_target_properties(WindowsApplication${version} PROPERTIES 
PlatformToolset V90) 

That results in an error: set_target_properties Can not find target to 
add properties to. ${version} is set to a version string and the term 
WindowsApplication${version} is used later in the file by an 
add_library and a target_link_library with no error. How can I set the 
platform toolset to V90 from CMAKE? 

Gary G. Little 
___
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] (no subject)

2010-12-01 Thread Michael Hertling
On 12/01/2010 03:45 PM, Gary%20G.%20Little%20%40%20comcast wrote:
 I have a Visual Studio 2010 solution and I am trying to set the 
 Configuration Properties - General - Platform Toolset of one 
 particular project to use V90 to allow this project to build with the VS 
 2008 tool set. I followed an older thread and tried this: 
 
 set_target_properties(WindowsApplication${version} PROPERTIES 
 PlatformToolset V90) 
 
 That results in an error: set_target_properties Can not find target to 
 add properties to. ${version} is set to a version string and the term 
 WindowsApplication${version} is used later in the file by an 
 add_library and a target_link_library with no error. How can I set the 
 platform toolset to V90 from CMAKE? 

SET_TARGET_PROPERTIES() must not appear before the targets it
operates on, so move this command behind the ADD_LIBRARY().

Regards,

Michael
___
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] (no subject)

2009-12-16 Thread Johan Knutzen
Hi John,

Thank you! This looks very nice, and uses a bit different approach than the one 
used in PCHSupport. 

Will use this!

Johan

--- Den tis 2009-12-15 skrev John Drescher dresche...@gmail.com:

Från: John Drescher dresche...@gmail.com
Ämne: Re: [CMake] (no subject)
Till: Johan Knutzen knutzen_joh...@yahoo.se
Kopia: cmake@cmake.org
Datum: tisdag 15 december 2009 15.08

On Tue, Dec 15, 2009 at 4:13 AM, Johan Knutzen knutzen_joh...@yahoo.se wrote:

 Hi!

 What is the status of scripts enabling precompiled headers for gcc/visual 
 studio? I've tried out PCHSupport_26 from 
 http://www.cmake.org/Bug/view.php?id=1260 but I couldn't get it to work. Does 
 anyone have any up to date script that works with 2.8?


I have not bothered in linux since I can use ccache to speed up
builds. In windows I use the following macro:

#

macro( SM_PCH_SUPPORT ProjectName )
if (MSVC)
    if (USE_MSVC_PCH)
    
        set_source_files_properties(${ProjectName}PCH.cxx
            PROPERTIES
            COMPILE_FLAGS /Yc${ProjectName}PCH.h
            )
        foreach( src_file ${${ProjectName}_SRCS} )
            set_source_files_properties(
                ${src_file}
                PROPERTIES
                COMPILE_FLAGS /Yu${ProjectName}PCH.h
                )
        endforeach( src_file ${${ProjectName}_SRCS} )
        
        list(APPEND ${ProjectName}_SRCS ${ProjectName}PCH.cxx)
        list(APPEND ${ProjectName}_EXT_HDRS ${ProjectName}PCH.h)

    endif(USE_MSVC_PCH)
endif (MSVC)
endmacro (SM_PCH_SUPPORT)

#


And this requires me to have my source variable named ${ProjectName}_SRCS

And my header variable to be named ${ProjectName}_EXT_HDRS

and the following files to exist in the same folder as the CMakeLists.txt

${ProjectName}PCH.cxx ${ProjectName}PCH.h

I generally put this macro in the main project before my first
add_subdirectory so that all subprojects can use the macro as well.

Then to activate this in a project. I place the macro call after I
define the list variables.

SET( smDataManagement_SRCS
    ./src/smData.cxx
    ./src/smDataOperation.cxx
    ./src/smCounterBalanceOperation.cxx
)

SET( smDataManagement_EXT_HDRS
    ./Include/smData.h
    ./Include/smDataOperation.h
    ./Include/smCounterBalanceOperation.h
)

SET( smDataManagement_MOC_HDRS
    
)

# some .ui files
SET( smDataManagement_UIS
)

# and finally an resource file
SET( smDataManagement_RCS
)

SET( smDataManagement_INT_HDRS

)

#Add precompiled header support
SM_PCH_SUPPORT(smDataManagement)

This works in cmake-2.6 and above.
John



  __
Låna pengar utan säkerhet. Jämför vilkor online hos Kelkoo.
http://www.kelkoo.se/c-100390123-lan-utan-sakerhet.html?partnerId=96915014___
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

[CMake] (no subject)

2009-12-15 Thread Johan Knutzen
Hi!

What is the status of scripts enabling precompiled headers for gcc/visual 
studio? I've tried out PCHSupport_26 from 
http://www.cmake.org/Bug/view.php?id=1260 but I couldn't get it to work. Does 
anyone have any up to date script that works with 2.8? 


Johan



  __
Ta semester! - sök efter resor hos Kelkoo.
Jämför pris på flygbiljetter och hotellrum här:
http://www.kelkoo.se/c-169901-resor-biljetter.html?partnerId=96914052___
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] (no subject)

2009-12-15 Thread John Drescher
On Tue, Dec 15, 2009 at 4:13 AM, Johan Knutzen knutzen_joh...@yahoo.se wrote:

 Hi!

 What is the status of scripts enabling precompiled headers for gcc/visual 
 studio? I've tried out PCHSupport_26 from 
 http://www.cmake.org/Bug/view.php?id=1260 but I couldn't get it to work. Does 
 anyone have any up to date script that works with 2.8?


I have not bothered in linux since I can use ccache to speed up
builds. In windows I use the following macro:

#

macro( SM_PCH_SUPPORT ProjectName )
if (MSVC)
if (USE_MSVC_PCH)

set_source_files_properties(${ProjectName}PCH.cxx
PROPERTIES
COMPILE_FLAGS /Yc${ProjectName}PCH.h
)
foreach( src_file ${${ProjectName}_SRCS} )
set_source_files_properties(
${src_file}
PROPERTIES
COMPILE_FLAGS /Yu${ProjectName}PCH.h
)
endforeach( src_file ${${ProjectName}_SRCS} )

list(APPEND ${ProjectName}_SRCS ${ProjectName}PCH.cxx)
list(APPEND ${ProjectName}_EXT_HDRS ${ProjectName}PCH.h)

endif(USE_MSVC_PCH)
endif (MSVC)
endmacro (SM_PCH_SUPPORT)

#


And this requires me to have my source variable named ${ProjectName}_SRCS

And my header variable to be named ${ProjectName}_EXT_HDRS

and the following files to exist in the same folder as the CMakeLists.txt

${ProjectName}PCH.cxx ${ProjectName}PCH.h

I generally put this macro in the main project before my first
add_subdirectory so that all subprojects can use the macro as well.

Then to activate this in a project. I place the macro call after I
define the list variables.

SET( smDataManagement_SRCS
./src/smData.cxx
./src/smDataOperation.cxx
./src/smCounterBalanceOperation.cxx
)

SET( smDataManagement_EXT_HDRS
./Include/smData.h
./Include/smDataOperation.h
./Include/smCounterBalanceOperation.h
)

SET( smDataManagement_MOC_HDRS

)

# some .ui files
SET( smDataManagement_UIS
)

# and finally an resource file
SET( smDataManagement_RCS
)

SET( smDataManagement_INT_HDRS

)

#Add precompiled header support
SM_PCH_SUPPORT(smDataManagement)

This works in cmake-2.6 and above.
John
___
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] (no subject)

2009-08-13 Thread Calder Coalson
 I have been torturing myself over the following short bit of code all
 day to no avail, so I'm sending out an email to this list in the hopes
 that someone can catch whatever stupid mistake I'm making.  The code,
 which is supposed to find two dependencies for a project is run using
 find_package(MacDeps) from my main script.

 set(CMAKE_FIND_FRAMEWORK
   /Library/Frameworks
   /System/Library/Frameworks
   ~/Library/Frameworks
 )

This is invalid. Allowed values for CMAKE_FIND_FRAMEWORK are FIRST,
LAST, ONLY and NEVER. See
http://cmake.org/cmake/help/cmake2.6docs.html#command
:find_library


So what I SHOULD have been using was CMAKE_SYSTEM_FRAMEWORK_PATH.  DOH!
 Sorry for the bother but thanks for the help.
___
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] (no subject)

2009-08-13 Thread Mike Jackson
On Thu, Aug 13, 2009 at 10:34 AM, Calder Coalsonccoal.m...@gmail.com wrote:
 I have been torturing myself over the following short bit of code all
 day to no avail, so I'm sending out an email to this list in the hopes
 that someone can catch whatever stupid mistake I'm making.  The code,
 which is supposed to find two dependencies for a project is run using
 find_package(MacDeps) from my main script.

 set(CMAKE_FIND_FRAMEWORK
       /Library/Frameworks
       /System/Library/Frameworks
       ~/Library/Frameworks
 )

 This is invalid. Allowed values for CMAKE_FIND_FRAMEWORK are FIRST,
 LAST, ONLY and NEVER.
 See http://cmake.org/cmake/help/cmake2.6docs.html#command
 :find_library

 So what I SHOULD have been using was CMAKE_SYSTEM_FRAMEWORK_PATH.  DOH!
  Sorry for the bother but thanks for the help.

If your frameworks are located in the standard locations then you
should NOT have to set ANYTHING. Just use the find_library() command
as usual. If you install your frameworks in other locations then you
are going to have to provide those locations to cmake.

Mike Jackson
___
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


[CMake] (no subject)

2009-03-28 Thread Matteo Toro
i'm trying to configure qgis but this is the output of cmake . :

t...@toro-desktop:~/Scrivania/qgis_1.0.0$ cmake .
CMake Error: Error in cmake code at
/usr/local/share/CMake/Modules/CMakeDetermineSystem.cmake:73:
FILE Internal CMake error when trying to open file: 
/home/toro/Scrivania/qgis_1.0.0/CMakeOutput.log for writting.
CMake Error: Error in cmake code at
/usr/local/share/CMake/Modules/CMakeDetermineCCompiler.cmake:62:
FILE Internal CMake error when trying to open file: 
/home/toro/Scrivania/qgis_1.0.0/CMakeOutput.log for writting.
CMake Error: Error in cmake code at
/usr/local/share/CMake/Modules/CMakeDetermineCXXCompiler.cmake:48:
FILE Internal CMake error when trying to open file: 
/home/toro/Scrivania/qgis_1.0.0/CMakeOutput.log for writting.
-- Check for working C compiler: /usr/bin/gcc -- works
CMake Error: Error in cmake code at
/usr/local/share/CMake/Modules/CMakeTestCCompiler.cmake:29:
FILE Internal CMake error when trying to open file: 
/home/toro/Scrivania/qgis_1.0.0/CMakeOutput.log for writting.
-- Check for working CXX compiler: /usr/bin/c++ -- works
CMake Error: Error in cmake code at
/usr/local/share/CMake/Modules/CMakeTestCXXCompiler.cmake:25:
FILE Internal CMake error when trying to open file: 
/home/toro/Scrivania/qgis_1.0.0/CMakeOutput.log for writting.
WARNING: This project requires version: 2.4.3 of cmake.
You are running version: 2
-- Found Proj: /usr/lib/libproj.so
-- Found GEOS: /usr/lib/libgeos.so.2.2.3
-- Found GDAL: /usr/local/lib/libgdal.so
-- Found PostgreSQL: /usr/lib/libpq.so
-- Found Expat: /usr/lib/libexpat.so
-- Using GSL from sh: /home/toro/Scrivania/qgis_1.0.0/cmake: Permission denied
-- Could not find GRASS
CMake Error: PythonInterp_DIR is not set.  It must be set to the directory 
containing PythonInterpConfig.cmake in order to use PythonInterp.
-- Python libraries found
-- SIP python module is missing!
-- SIP executable is missing!
-- SIP header file is missing!
-- PyQt4 not found!
-- Python bindings disabled due dependency problems!
CMake Error: Qt4_DIR is set to /usr/local, which is not a directory 
containing Qt4Config.cmake
-- Configuring done
CMake Error: Unable to open check cache file for write. 
/home/toro/Scrivania/qgis_1.0.0/cmake.check_cache

how can i fix these probs??

thank you everybody


___
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] (no subject)

2009-03-28 Thread Tyler Roscoe
On Sat, Mar 28, 2009 at 07:00:07PM +0100, Matteo Toro wrote:
 i'm trying to configure qgis but this is the output of cmake . :
 
 t...@toro-desktop:~/Scrivania/qgis_1.0.0$ cmake .
 CMake Error: Error in cmake code at
 /usr/local/share/CMake/Modules/CMakeDetermineSystem.cmake:73:
 FILE Internal CMake error when trying to open file: 
 /home/toro/Scrivania/qgis_1.0.0/CMakeOutput.log for writting.
 CMake Error: Error in cmake code at

This may be a dumb question but do you have write access to
/home/toro/Scrivania/qgis_1.0.0/?

Also, it looks like you're doing an in-source build. I don't know
anything about qgis but in-source builds are not recommended -- check
the FAQ for details.

Also also, your CMake looks pretty old (version 2?). You may want to
upgrade.

tyler
___
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] (no subject)

2008-04-05 Thread Alin M Elena

Hi,

I've spent the last few days trying to convince CMake to configure a
toy FORTRAN project without success.  I'm hoping that someone on this
list can point me in the right direction.  Here are the details:
Last time when I checked the VS2005 generator was not working for Fortran.
The thing is that VS2005 does support intel fortran if you add their
integration. This is how you get the .vfproj files.
I have tested myself the intel visual fortran with VS2005. The conclusions
were
Is quite poor as a simple Project management. 
It does not support Intellisense and other useful features that you have in
C/C++.
It may be very useful if you want to use their analysis tools. (Vtune,
Thread Checker)
If you do not intend to use them just stick with NMakeFiles generator and a
common editor.

I have already tried setting all ifortvars.bat variables directly in
my windows environment, but this doesn't appear to help anything.

That's simple.
I got windows powershell and set it up there. If you come from unix/linux is
simple if not is a good exercise, probably you will have to go there too.


Here is the part from profile that correctly sets IVF10
It is just a translation of the configuration files for vs2005 and ivf10

if ( test-path -path $env:VS80COMNTOOLS )
{
 echo Setting Visual studio 2005 enviroment
 $env:VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8
 $env:VCINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8\VC
 $env:FrameworkDir=C:\Windows\Microsoft.NET\Framework
 $env:FrameworkVersion=v2.0.50727
 $env:FrameworkSDKDir=C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0
 $env:DevEnvDir=C:\Program Files\Microsoft Visual Studio 8\Common7\IDE

 $env:PATH+=;C:\Program Files\Microsoft Visual Studio
8\Common7\IDE;C:\Program Files\Microsoft Visual Studio 8\VC\BIN;C:\Program
Files\Microsoft Visual Studio 8\Common7\Tools;C:\Program Files\Microsoft
Visual Studio 8\Common7\Tools\bin;C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\bin;C:\Program Files\Microsoft Visual Studio
8\SDK\v2.0\bin;C:\Windows\Microsoft.NET\Framework\v2.0.50727;C:\Program
Files\Microsoft Visual Studio 8\VC\VCPackages
 $env:INCLUDE+=;C:\Program Files\Microsoft Visual Studio
8\VC\ATLMFC\INCLUDE;C:\Program Files\Microsoft Visual Studio
8\VC\INCLUDE;C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include;C:\Program Files\Microsoft Visual Studio
8\SDK\v2.0\include
 $env:LIB+=;C:\Program Files\Microsoft Visual Studio
8\VC\ATLMFC\LIB;C:\Program Files\Microsoft Visual Studio 8\VC\LIB;C:\Program
Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib;C:\Program
Files\Microsoft Visual Studio 8\SDK\v2.0\lib
 $env:LIBPATH+=C:\Windows\Microsoft.NET\Framework\v2.0.50727;C:\Program
Files\Microsoft Visual Studio 8\VC\ATLMFC\LIB
}

$env:IFORT_COMPILER10=C:\Intel\Compiler\Fortran\10.1.013
$env:INTEL_SHARED=C:\Program Files\Common Files\Intel\Shared Files
$env:INTEL_LICENSE_FILE=C:\Program Files\Common Files\Intel\Licenses

if ( test-path -path $env:IFORT_COMPILER10 )
{
  echo setting the intel fortran compiler
  $env:PATH +=
;+$env:IFORT_COMPILER10+\Ia32\Bin;+$env:INTEL_SHARED+\Ia32\Bin
  $env:LIB += ;+$env:IFORT_COMPILER10+\Ia32\Lib
  $env:LIBPATH += ;+$env:IFORT_COMPILER10+\Ia32\Lib
  $env:INCLUDE += ;+$env:IFORT_COMPILER10+\Ia32\Include
}

Alin



...if the universities will not study useless subjects, who will?
   G. F. Fitzgerald, Nature, 45/46, 392 (1892)
__
Mr. Alin M. ELENA
Atomistic Simulation Centre
School of Mathematics and Physics
Queen's University Belfast
Office: +44 (0)28 9097 1428
Fax: +44 (0)28 9097 5359
http://titus.phy.qub.ac.uk/group/Alin/
[EMAIL PROTECTED]
[EMAIL PROTECTED]
__


___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] (no subject)

2008-03-31 Thread cgen . cmake
Hello cmake users. 
I choose cmake to build a big project. This project contains Fortran 77 (the 
most numerous), C, and C++ source files, and only one executable built from all 
source files. 
It works well with gnu g77 compiler. But with Absoft compiler, the option -fPIC 
is used at linking without i ask it. So I get an error : ERROR: Unrecognized 
arguments: -fPIC I do not find this option in Absoft compiler documentation. I 
would like to remove -fPIC in linking option but i do not know how. 
Any idea ? Thanks in advance for any answer. 
best regards Christophe 








 Créez votre adresse électronique [EMAIL PROTECTED] 
 1 Go d'espace de stockage, anti-spam et anti-virus intégrés.
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] (no subject)

2008-03-31 Thread Alan W. Irwin

On 2008-03-31 11:36+0200 [EMAIL PROTECTED] wrote:


Hello cmake users.
I choose cmake to build a big project. This project contains Fortran 77 (the 
most numerous), C, and C++ source files, and only one executable built from all 
source files.
It works well with gnu g77 compiler. But with Absoft compiler, the option -fPIC 
is used at linking without i ask it. So I get an error : ERROR: Unrecognized 
arguments: -fPIC I do not find this option in Absoft compiler documentation. I 
would like to remove -fPIC in linking option but i do not know how.
Any idea ? Thanks in advance for any answer.
best regards Christophe


Try

SET(CMAKE_SHARED_LIBRARY_Fortran_FLAGS )

I am not sure that will work, but I notice that variable is set to -fPIC
quite a few places in /Modules/Platform where CMake stores customizations
for particular compilers/linkers.

The problem with setting the CMAKE_SHARED_LIBRARY_Fortran_FLAGS variable is
it only works if you always use the absoft compiler.  A much better approach
would be to have a quick look at the *Fortran* files in /Modules to see
how Fortran compiler/linker customization is set up then follow those rules
to set up your own absoft-specific customization file.

PLplot does this as follows:

# Location where PLplot cmake build system first looks for cmake modules.
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/modules)

We then put our two specific compiler customizations in
cmake/modules/Platform/.  These are customization files for windows
compilers and nothing to do with absoft, but you could similarly make your
absoft CMake customizations in your own software project this way.

Once you are satisfied with your absoft customization, then I would urge you
to donate your file to CMake so others will benefit as well.  (IIRC, Arjen
Markus did this for his two PLplot windows compiler customization files for
PLplot a couple of years ago, but apparently the results were lost in the
CMake bug tracker so we will probably make the attempt to donate that work
again once we have verified it works for CMake cvs)

N.B. CMake 2.4.8 Fortran support really sucks (you will require a number of
ugly Fortran workarounds if you use 2.4.8) so I advise you strongly to use
the CMake cvs version (which I checked above for absoft customizations) or
else the recently released CMake 2.6.0 Beta.

Alan
__
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__

Linux-powered Science
__
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

[CMake] (no subject)

2007-08-27 Thread Convey Christian J NPRI
On Linux, I'm building a program that is linked against the ncurses
library.  

In CMake, what decides whether my program will be linked to libcurses.a or
to libcurses.so ?

I'd like to minimize external dependencies in the build program, so whenever
possible I'd like to link to the .a version.  But if nothing else I need to
know which version (static vs. dynamic) of a given library my program is
linked to.

Thanks,
Christian
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] (no subject)

2007-02-26 Thread Alexander Ivash
Hello, cmake.

Is it possible to use cmake with eclipse for c++ projects ?

-- 
Best regards,
 Alexander  mailto:[EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] (no subject)

2006-07-25 Thread Daniel Tihelka

Hallo everybody,

may I have two more simple questions about CMake and SWIG module?

The first is connected to the setting of SWIG parameters - when I create wrapper for Java, I need to set -package name to SWIG.

It is impossible to set is as:

	SET_SOURCE_FILES_PROPERTIES( ErisJava.i PROPERTIES SWIG_FLAGS -package my_package )

as it is replaced by -package\ my_package in the call of SWIG. Moreover, it overwrites all previous definitions of PROPERTIES SWIG_FLAGS. There is possibility of using:

	SET(CMAKE_SWIG_FLAGS -package my_package)

but if I understand it well, it swithes this parameter globally, for all swig calls (also when wrapping e.g. python). So, how to deal with this? Is there another way or is the second way correct?


==

The second question is about cmake -E copy command. I have notices that the use of wildcards is not possible in this command (event not documented?) - I need to copy all generated Java wrappign classes, but I cannot use the command cmake -E copy source_dir/*.java destin_dir. I have solved it by cmake -E chdir dir comand, but I have completely lost the platform independence.

I want kindly to ask you, if it would be possible to add support for wildcards in the cmake -E copy command (or mabye to the others as well?) - it will extend the abilities of the cmake while still be platform independent. Or can it be solved in another way?


I use CMake 2.2-1-beta (compiled by gentoo distro).

Thank you very much for your help.
Dan


___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake