diff options
author | Brad King <brad.king@kitware.com> | 2002-12-18 14:38:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2002-12-18 14:38:34 (GMT) |
commit | ccb93dc2f4b57350916de40285278dec06715b26 (patch) | |
tree | d8e465033423339b23c7c57d04bcd0804d5dd537 | |
parent | 10931b5e66452f6f6af05dbeecbf2c7108391fdb (diff) | |
download | CMake-ccb93dc2f4b57350916de40285278dec06715b26.zip CMake-ccb93dc2f4b57350916de40285278dec06715b26.tar.gz CMake-ccb93dc2f4b57350916de40285278dec06715b26.tar.bz2 |
ERR: Project name and executable name should match for consistency in the X11 test.
-rw-r--r-- | Source/CMakeLists.txt | 2 | ||||
-rw-r--r-- | Tests/X11/CMakeLists.txt | 14 |
2 files changed, 4 insertions, 12 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 674d61c..358442d 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -147,7 +147,7 @@ IF(BUILD_TESTING) ADD_TEST(X11 ${CMake_BINARY_DIR}/Source/cmaketest ${CMake_SOURCE_DIR}/Tests/X11 ${CMake_BINARY_DIR}/Tests/X11 - useX11) + UseX11) ADD_TEST(LoadedCommand ${CMake_BINARY_DIR}/Source/cmaketest ${CMake_SOURCE_DIR}/Tests/LoadCommand diff --git a/Tests/X11/CMakeLists.txt b/Tests/X11/CMakeLists.txt index 6a4abef..59711b0 100644 --- a/Tests/X11/CMakeLists.txt +++ b/Tests/X11/CMakeLists.txt @@ -1,20 +1,12 @@ # a simple C only test case -PROJECT (X11 C) - -# Temporary hack to deal with dirty cache files. -IF(EXISTS ${X11_BINARY_DIR}/X11.exe) - EXEC_PROGRAM(${CMAKE_COMMAND} ARGS -E remove ${X11_BINARY_DIR}/X11.exe) -ENDIF(EXISTS ${X11_BINARY_DIR}/X11.exe) -IF(EXISTS ${X11_BINARY_DIR}/X11) - EXEC_PROGRAM(${CMAKE_COMMAND} ARGS -E remove ${X11_BINARY_DIR}/X11) -ENDIF(EXISTS ${X11_BINARY_DIR}/X11) +PROJECT (UseX11 C) INCLUDE (${CMAKE_ROOT}/Modules/FindX11.cmake) -ADD_EXECUTABLE (useX11 X11.c) +ADD_EXECUTABLE (UseX11 X11.c) IF(CMAKE_HAS_X) ADD_DEFINITIONS(-DCMAKE_HAS_X) INCLUDE_DIRECTORIES(${CMAKE_X_INCLUDE_DIRS}) - TARGET_LINK_LIBRARIES(useX11 ${CMAKE_X_LIBS}) + TARGET_LINK_LIBRARIES(UseX11 ${CMAKE_X_LIBS}) ENDIF(CMAKE_HAS_X) |