From 4ea0f6b9494f2b4a4a5a238f8ad51ee6fbbcfe0a Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 2 Apr 2002 15:43:23 -0500 Subject: ENH: add enable language support for PROJECT command, this means that a C only project can be built with cmake, even without a cxx compiler --- Example/Demo/CMakeLists.txt | 2 +- Example/Hello/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Example') diff --git a/Example/Demo/CMakeLists.txt b/Example/Demo/CMakeLists.txt index 309d40f7c8..6845032748 100644 --- a/Example/Demo/CMakeLists.txt +++ b/Example/Demo/CMakeLists.txt @@ -6,7 +6,7 @@ LINK_DIRECTORIES(${HELLO_BINARY_DIR}/Hello) # Add executable called "helloDemo" that is built from the source files # "demo.cxx" and "demo_b.cxx". The extensions are automatically found. -ADD_EXECUTABLE(helloDemo demo demo_b) +ADD_EXECUTABLE(helloDemo demo.cxx demo_b.cxx) # Link the executable to the Hello library. TARGET_LINK_LIBRARIES(helloDemo Hello) diff --git a/Example/Hello/CMakeLists.txt b/Example/Hello/CMakeLists.txt index 284eed16b3..c424da6ed7 100644 --- a/Example/Hello/CMakeLists.txt +++ b/Example/Hello/CMakeLists.txt @@ -1,3 +1,3 @@ # Create a library called "Hello" which includes the source file "hello.cxx". # The extension is already found. Any number of sources could be listed here. -ADD_LIBRARY(Hello hello) +ADD_LIBRARY(Hello hello.cxx) -- cgit v1.2.1