On 2015-05-15 14:48-0400 Brad King wrote:
On 05/15/2015 02:26 PM, Alan W. Irwin wrote:
function(plplot_cmake_minimum_required)
cmake_minimum_required(${ARGV})
endfunction(plplot_cmake_minimum_required)
Help: Document behavior of cmake_minimum_required in a function
http://cmake.org/gitweb
On Fri, May 15, 2015 at 2:17 PM, Petr Kmoch wrote:
> `if(${LINUX64})` will expand to `if()` if LINUX64 is either not defined,
> or holds an empty string. In both cases, it's a syntax error. If you want
> to check whether LINUX64 is set to a truthy value, either quote it, or
> don't dereference it
On 05/15/2015 02:26 PM, Alan W. Irwin wrote:
> function(plplot_cmake_minimum_required)
> cmake_minimum_required(${ARGV})
> endfunction(plplot_cmake_minimum_required)
Help: Document behavior of cmake_minimum_required in a function
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e5f8ead5
-Br
On 2015-05-01 08:47-0400 Brad King wrote:
On 05/01/2015 06:25 AM, Alan W. Irwin wrote:
# First call to project so that CMAKE_SYSTEM_NAME is defined
project(plplot NONE)
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
else(CMAKE_SYSTEM_NAME STREQUAL
`if(${LINUX64})` will expand to `if()` if LINUX64 is either not defined, or
holds an empty string. In both cases, it's a syntax error. If you want to
check whether LINUX64 is set to a truthy value, either quote it, or don't
dereference it:
if((CMAKE_SYSTEM_NAME MATCHES "SunOS") OR LINUX64)
Note t
On Fri, May 15, 2015 at 1:05 PM, Tom Kacvinsky wrote:
> On Fri, May 15, 2015 at 12:12 PM, Domen Vrankar
> wrote:
>
>> > if ((${CMAKE_SYSTEM_NAME} MATCHES "SunOS") or (DEFINED LINUX64))
>> > message(STATUS "On Solaris or 64 bit Linux")
>> > endif()
>> > # ===
On Fri, May 15, 2015 at 12:12 PM, Domen Vrankar
wrote:
> > if ((${CMAKE_SYSTEM_NAME} MATCHES "SunOS") or (DEFINED LINUX64))
> > message(STATUS "On Solaris or 64 bit Linux")
> > endif()
> > # [
> >
> > I'm using cmake version 2.8.11.2 built fro
> if ((${CMAKE_SYSTEM_NAME} MATCHES "SunOS") or (DEFINED LINUX64))
> message(STATUS "On Solaris or 64 bit Linux")
> endif()
> # [
>
> I'm using cmake version 2.8.11.2 built from source on
>
> Linux localhost.localdomain 2.6.18-8.el5 #1 SMP Thu M
Here is a simple CMakeList.txt:
# [
cmake_minimum_required(VERSION 2.8)
project(vectorcast)
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64")
set(LINUX64 1)
else()
set(LINUX32 1)
endif()
endi
Is it possible for CMake to generate a Makefile that exports environment
variables whenever a target is executed? I want all invocations of gcc to
see the environment variables COVFILE=xxx and COVSRCDIR=xxx
Thanks,
Taylor
--
Powered by www.kitware.com
Please keep messages on-topic and check the
Auto-generating things seems like a good idea, as most CMake scripting feels
like boilerplate. The majority of the projects do the same things, so it only
makes sense to try getting some automation working. Perhaps it might go all the
way to obtaining sources if not found on the computer, simila
11 matches
Mail list logo