[Cmake-commits] [cmake-commits] hoffman committed CMakeLists.txt 1.1.2.2 1.1.2.3 example_exe.c 1.1.2.2 1.1.2.3 example_mod_1.c 1.1.2.2 1.1.2.3
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Oct 9 16:11:49 EDT 2009
Update of /cvsroot/CMake/CMake/Tests/ModuleDefinition
In directory public:/mounts/ram/cvs-serv13963/Tests/ModuleDefinition
Modified Files:
Tag: CMake-2-8
CMakeLists.txt example_exe.c example_mod_1.c
Log Message:
Merge in changes for RC 3
Index: example_mod_1.c
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/ModuleDefinition/example_mod_1.c,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C 2 -d -r1.1.2.2 -r1.1.2.3
*** example_mod_1.c 1 Oct 2009 21:21:24 -0000 1.1.2.2
--- example_mod_1.c 9 Oct 2009 20:11:46 -0000 1.1.2.3
***************
*** 7,11 ****
int __declspec(dllimport) example_exe_function(void);
int __declspec(dllimport) example_dll_function(void);
! #ifdef _MSC_VER
int __declspec(dllimport) example_dll_2_function(void);
#endif
--- 7,11 ----
int __declspec(dllimport) example_exe_function(void);
int __declspec(dllimport) example_dll_function(void);
! #ifdef EXAMPLE_DLL_2
int __declspec(dllimport) example_dll_2_function(void);
#endif
***************
*** 15,19 ****
return
example_dll_function() +
! #ifdef _MSC_VER
example_dll_2_function() +
#endif
--- 15,19 ----
return
example_dll_function() +
! #ifdef EXAMPLE_DLL_2
example_dll_2_function() +
#endif
Index: example_exe.c
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/ModuleDefinition/example_exe.c,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C 2 -d -r1.1.2.2 -r1.1.2.3
*** example_exe.c 1 Oct 2009 21:21:24 -0000 1.1.2.2
--- example_exe.c 9 Oct 2009 20:11:46 -0000 1.1.2.3
***************
*** 1,4 ****
extern int __declspec(dllimport) example_dll_function(void);
! #ifdef _MSC_VER
extern int __declspec(dllimport) example_dll_2_function(void);
#endif
--- 1,4 ----
extern int __declspec(dllimport) example_dll_function(void);
! #ifdef EXAMPLE_DLL_2
extern int __declspec(dllimport) example_dll_2_function(void);
#endif
***************
*** 8,12 ****
return
example_dll_function() +
! #ifdef _MSC_VER
example_dll_2_function() +
#endif
--- 8,12 ----
return
example_dll_function() +
! #ifdef EXAMPLE_DLL_2
example_dll_2_function() +
#endif
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/ModuleDefinition/CMakeLists.txt,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C 2 -d -r1.1.2.2 -r1.1.2.3
*** CMakeLists.txt 1 Oct 2009 21:21:23 -0000 1.1.2.2
--- CMakeLists.txt 9 Oct 2009 20:11:46 -0000 1.1.2.3
***************
*** 6,13 ****
# Test /DEF:<file> flag recognition for VS.
! if(MSVC)
add_library(example_dll_2 SHARED example_dll_2.c)
set_property(TARGET example_dll_2 PROPERTY LINK_FLAGS
/DEF:"${ModuleDefinition_SOURCE_DIR}/example_dll_2.def")
set(example_dll_2 example_dll_2)
endif()
--- 6,14 ----
# Test /DEF:<file> flag recognition for VS.
! if(MSVC OR "${CMAKE_C_COMPILER_ID}" MATCHES "^(Intel)$")
add_library(example_dll_2 SHARED example_dll_2.c)
set_property(TARGET example_dll_2 PROPERTY LINK_FLAGS
/DEF:"${ModuleDefinition_SOURCE_DIR}/example_dll_2.def")
+ set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS EXAMPLE_DLL_2)
set(example_dll_2 example_dll_2)
endif()
More information about the Cmake-commits
mailing list