[CMake] This used to work...
J Decker
d3ck0r at gmail.com
Tue Dec 2 03:53:37 EST 2014
MinGW Makefile generator...
(yes ${target} is blank... it should be 'a')
-------
cmake_minimum_required(VERSION 2.8)
add_library( a main.c )
set( MOREDEFS "TARGETNAME=\"${target}\" TARGET_LABEL=${TARGET_LABEL}" )
SET_PROPERTY(TARGET a APPEND PROPERTY COMPILE_DEFINITIONS ${MOREDEFS} )
# this used to be more like... but simplified the quotes...
SET_PROPERTY(TARGET a APPEND PROPERTY COMPILE_DEFINITIONS
"TARGET_LABEL=${TARGET_LABEL};${MOREDEFS}" )
----
[100%] Building C object CMakeFiles/a.dir/main.c.obj
c:\tools\unix\MinGW\bin\gcc.exe -DTARGETNAME="\"\" TARGET_LABEL=" -o
CMakeFiles\a.dir\main.c.obj -c M:\tmp\mingw\cmake\main.c
--------
the quoting on the parameters is wrong...
-DTARGETNAME="\"\" TARGET_LABEL="
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20141202/3986fe69/attachment-0001.html>
More information about the CMake
mailing list