diff options
author | David Cole <david.cole@kitware.com> | 2012-02-07 20:35:11 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2012-02-07 20:35:11 (GMT) |
commit | 986981ea03cac860c0128214144b97f18979a1ae (patch) | |
tree | cc702276a5c843549895b3dd07b6e9865e2f79c2 /Tests | |
parent | 43b463cdfc8f1e2e595ab9cf0feec89b4b782e0b (diff) | |
parent | 749584509ee3155bb87e56a08ee538e4100a59d8 (diff) | |
download | CMake-986981ea03cac860c0128214144b97f18979a1ae.zip CMake-986981ea03cac860c0128214144b97f18979a1ae.tar.gz CMake-986981ea03cac860c0128214144b97f18979a1ae.tar.bz2 |
Merge topic 'lang-enable-order-issue-12929'
7495845 Fix CXX/Fortran MODULE flags when enabled before C (#12929)
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/COnly/CMakeLists.txt | 2 | ||||
-rw-r--r-- | Tests/COnly/testCModule.c | 6 | ||||
-rw-r--r-- | Tests/CxxOnly/CMakeLists.txt | 2 | ||||
-rw-r--r-- | Tests/CxxOnly/testCxxModule.cxx | 6 |
4 files changed, 16 insertions, 0 deletions
diff --git a/Tests/COnly/CMakeLists.txt b/Tests/COnly/CMakeLists.txt index 7742055..5ef0f1e 100644 --- a/Tests/COnly/CMakeLists.txt +++ b/Tests/COnly/CMakeLists.txt @@ -19,3 +19,5 @@ if("${LANG}" STREQUAL "C") else("${LANG}" STREQUAL "C") message(FATAL_ERROR "Bad language for file conly.c") endif("${LANG}" STREQUAL "C") + +add_library(testCModule MODULE testCModule.c) diff --git a/Tests/COnly/testCModule.c b/Tests/COnly/testCModule.c new file mode 100644 index 0000000..1a89292 --- /dev/null +++ b/Tests/COnly/testCModule.c @@ -0,0 +1,6 @@ +#ifdef _WIN32 +# define TEST_EXPORT __declspec(dllexport) +#else +# define TEST_EXPORT +#endif +TEST_EXPORT int testCModule(void) { return 0; } diff --git a/Tests/CxxOnly/CMakeLists.txt b/Tests/CxxOnly/CMakeLists.txt index 5d27890..e62f3c7 100644 --- a/Tests/CxxOnly/CMakeLists.txt +++ b/Tests/CxxOnly/CMakeLists.txt @@ -9,3 +9,5 @@ add_library(testcxx1.my STATIC libcxx1.cxx ${EXTRA_SRCS}) add_library(testcxx2 SHARED libcxx2.cxx) add_executable (CxxOnly cxxonly.cxx) target_link_libraries(CxxOnly testcxx1.my testcxx2) + +add_library(testCxxModule MODULE testCxxModule.cxx) diff --git a/Tests/CxxOnly/testCxxModule.cxx b/Tests/CxxOnly/testCxxModule.cxx new file mode 100644 index 0000000..dd16d2b --- /dev/null +++ b/Tests/CxxOnly/testCxxModule.cxx @@ -0,0 +1,6 @@ +#ifdef _WIN32 +# define TEST_EXPORT __declspec(dllexport) +#else +# define TEST_EXPORT +#endif +TEST_EXPORT int testCxxModule(void) { return 0; } |