ENH: Add test for REMOVE_DEFINITION
This commit is contained in:
parent
504d0bc3b3
commit
23a154941b
@ -31,6 +31,7 @@ ENDIF(CMAKE_SYSTEM MATCHES "OSF1-V.*")
|
|||||||
|
|
||||||
|
|
||||||
ADD_DEFINITIONS(-DCMAKE_IS_FUN)
|
ADD_DEFINITIONS(-DCMAKE_IS_FUN)
|
||||||
|
ADD_DEFINITIONS(-DCMAKE_IS_REALLY_FUN)
|
||||||
|
|
||||||
SET(TEST_SEP "a b c")
|
SET(TEST_SEP "a b c")
|
||||||
SEPARATE_ARGUMENTS(TEST_SEP)
|
SEPARATE_ARGUMENTS(TEST_SEP)
|
||||||
|
@ -15,6 +15,9 @@ extern "C" {
|
|||||||
int cm_passed = 0;
|
int cm_passed = 0;
|
||||||
int cm_failed = 0;
|
int cm_failed = 0;
|
||||||
|
|
||||||
|
#ifndef CMAKE_IS_REALLY_FUN
|
||||||
|
This is a problem. Looks like ADD_DEFINITIONS and REMOVE_DEFINITIONS does not work
|
||||||
|
#endif
|
||||||
// Here is a stupid function that tries to use std::string methods
|
// Here is a stupid function that tries to use std::string methods
|
||||||
// so that the dec cxx compiler will instantiate the stuff that
|
// so that the dec cxx compiler will instantiate the stuff that
|
||||||
// we are using from the CMakeLib library....
|
// we are using from the CMakeLib library....
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
REMOVE_DEFINITIONS(-DCMAKE_IS_REALLY_FUN)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Small utility used to create file
|
# Small utility used to create file
|
||||||
# UTILITY_SOURCE is used for coverage and for getting the exact name
|
# UTILITY_SOURCE is used for coverage and for getting the exact name
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#ifdef CMAKE_IS_REALLY_FUN
|
||||||
|
This is a problem. Looks like REMOVE_DEFINITION does not work
|
||||||
|
#endif
|
||||||
|
|
||||||
int file2()
|
int file2()
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -31,6 +31,7 @@ ENDIF(CMAKE_SYSTEM MATCHES "OSF1-V.*")
|
|||||||
|
|
||||||
|
|
||||||
ADD_DEFINITIONS(-DCMAKE_IS_FUN)
|
ADD_DEFINITIONS(-DCMAKE_IS_FUN)
|
||||||
|
ADD_DEFINITIONS(-DCMAKE_IS_REALLY_FUN)
|
||||||
|
|
||||||
SET(TEST_SEP "a b c")
|
SET(TEST_SEP "a b c")
|
||||||
SEPARATE_ARGUMENTS(TEST_SEP)
|
SEPARATE_ARGUMENTS(TEST_SEP)
|
||||||
|
@ -15,6 +15,9 @@ extern "C" {
|
|||||||
int cm_passed = 0;
|
int cm_passed = 0;
|
||||||
int cm_failed = 0;
|
int cm_failed = 0;
|
||||||
|
|
||||||
|
#ifndef CMAKE_IS_REALLY_FUN
|
||||||
|
This is a problem. Looks like ADD_DEFINITIONS and REMOVE_DEFINITIONS does not work
|
||||||
|
#endif
|
||||||
// Here is a stupid function that tries to use std::string methods
|
// Here is a stupid function that tries to use std::string methods
|
||||||
// so that the dec cxx compiler will instantiate the stuff that
|
// so that the dec cxx compiler will instantiate the stuff that
|
||||||
// we are using from the CMakeLib library....
|
// we are using from the CMakeLib library....
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
REMOVE_DEFINITIONS(-DCMAKE_IS_REALLY_FUN)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Small utility used to create file
|
# Small utility used to create file
|
||||||
# UTILITY_SOURCE is used for coverage and for getting the exact name
|
# UTILITY_SOURCE is used for coverage and for getting the exact name
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#ifdef CMAKE_IS_REALLY_FUN
|
||||||
|
This is a problem. Looks like REMOVE_DEFINITION does not work
|
||||||
|
#endif
|
||||||
|
|
||||||
int file2()
|
int file2()
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -31,6 +31,7 @@ ENDIF(CMAKE_SYSTEM MATCHES "OSF1-V.*")
|
|||||||
|
|
||||||
|
|
||||||
ADD_DEFINITIONS(-DCMAKE_IS_FUN)
|
ADD_DEFINITIONS(-DCMAKE_IS_FUN)
|
||||||
|
ADD_DEFINITIONS(-DCMAKE_IS_REALLY_FUN)
|
||||||
|
|
||||||
SET(TEST_SEP "a b c")
|
SET(TEST_SEP "a b c")
|
||||||
SEPARATE_ARGUMENTS(TEST_SEP)
|
SEPARATE_ARGUMENTS(TEST_SEP)
|
||||||
|
@ -15,6 +15,9 @@ extern "C" {
|
|||||||
int cm_passed = 0;
|
int cm_passed = 0;
|
||||||
int cm_failed = 0;
|
int cm_failed = 0;
|
||||||
|
|
||||||
|
#ifndef CMAKE_IS_REALLY_FUN
|
||||||
|
This is a problem. Looks like ADD_DEFINITIONS and REMOVE_DEFINITIONS does not work
|
||||||
|
#endif
|
||||||
// Here is a stupid function that tries to use std::string methods
|
// Here is a stupid function that tries to use std::string methods
|
||||||
// so that the dec cxx compiler will instantiate the stuff that
|
// so that the dec cxx compiler will instantiate the stuff that
|
||||||
// we are using from the CMakeLib library....
|
// we are using from the CMakeLib library....
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
REMOVE_DEFINITIONS(-DCMAKE_IS_REALLY_FUN)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Small utility used to create file
|
# Small utility used to create file
|
||||||
# UTILITY_SOURCE is used for coverage and for getting the exact name
|
# UTILITY_SOURCE is used for coverage and for getting the exact name
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#ifdef CMAKE_IS_REALLY_FUN
|
||||||
|
This is a problem. Looks like REMOVE_DEFINITION does not work
|
||||||
|
#endif
|
||||||
|
|
||||||
int file2()
|
int file2()
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user