[cmake-commits] hoffman committed CMakeLists.txt 1.2 1.3 bar.h NONE
1.1 foo.cxx 1.1 1.2
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Dec 29 19:20:58 EST 2006
Update of /cvsroot/CMake/CMake/Tests/CustComDepend
In directory public:/mounts/ram/cvs-serv27852
Modified Files:
CMakeLists.txt foo.cxx
Added Files:
bar.h
Log Message:
ENH: try to fix test on watcom
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/CustComDepend/CMakeLists.txt,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- CMakeLists.txt 7 Dec 2006 16:38:53 -0000 1.2
+++ CMakeLists.txt 30 Dec 2006 00:20:56 -0000 1.3
@@ -1,4 +1,5 @@
project(CustComDepend)
+include_directories("${CustComDepend_SOURCE_DIR}")
add_definitions(-D_CRT_SECURE_NO_DEPRECATE=1)
set(EXECUTABLE_OUTPUT_PATH ${CustComDepend_BINARY_DIR}/bin)
add_executable(foo foo.cxx)
--- NEW FILE: bar.h ---
#ifdef _WIN32
# ifdef bar_EXPORTS
# define BAR_EXPORT __declspec( dllexport )
# else
# define BAR_EXPORT __declspec( dllimport )
# endif
#else
# define BAR_EXPORT
#endif
Index: foo.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/CustComDepend/foo.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- foo.cxx 7 Dec 2006 04:05:10 -0000 1.1
+++ foo.cxx 30 Dec 2006 00:20:56 -0000 1.2
@@ -8,7 +8,7 @@
{
return -1;
}
- fprintf(fout, "int bar(){ return 10;}\n");
+ fprintf(fout, "#include <bar.h>\nBAR_EXPORT int bar(){ return 10;}\n");
fclose(fout);
return 0;
}
More information about the Cmake-commits
mailing list