mirror of
https://github.com/reactos/CMake.git
synced 2024-11-27 21:41:03 +00:00
ENH: CMake kills me (so does Cygwin)
This commit is contained in:
parent
0281892890
commit
07b45da693
@ -620,7 +620,8 @@ IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
|
||||
|
||||
IF(BUILD_TESTING)
|
||||
|
||||
SET(TEST_SYSTEMTOOLS_EXE_FILE ${CMAKE_COMMAND})
|
||||
SET(TEST_SYSTEMTOOLS_BIN_FILE
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/testSystemTools.bin")
|
||||
SET(TEST_SYSTEMTOOLS_SRC_FILE
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/testSystemTools.cxx")
|
||||
CONFIGURE_FILE(
|
||||
|
BIN
Source/kwsys/testSystemTools.bin
Normal file
BIN
Source/kwsys/testSystemTools.bin
Normal file
Binary file not shown.
After Width: | Height: | Size: 766 B |
@ -97,12 +97,12 @@ bool CheckDetectFileType()
|
||||
{
|
||||
bool res = true;
|
||||
|
||||
if (kwsys::SystemTools::DetectFileType(TEST_SYSTEMTOOLS_EXE_FILE) !=
|
||||
if (kwsys::SystemTools::DetectFileType(TEST_SYSTEMTOOLS_BIN_FILE) !=
|
||||
kwsys::SystemTools::FileTypeBinary)
|
||||
{
|
||||
kwsys_ios::cerr
|
||||
<< "Problem with DetectFileType - failed to detect type of: "
|
||||
<< TEST_SYSTEMTOOLS_EXE_FILE << kwsys_ios::endl;
|
||||
<< TEST_SYSTEMTOOLS_BIN_FILE << kwsys_ios::endl;
|
||||
res = false;
|
||||
}
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
#ifndef @KWSYS_NAMESPACE@_testSystemtools_h
|
||||
#define @KWSYS_NAMESPACE@_testSystemtools_h
|
||||
|
||||
#define TEST_SYSTEMTOOLS_EXE_FILE "@TEST_SYSTEMTOOLS_EXE_FILE@"
|
||||
#define TEST_SYSTEMTOOLS_BIN_FILE "@TEST_SYSTEMTOOLS_BIN_FILE@"
|
||||
#define TEST_SYSTEMTOOLS_SRC_FILE "@TEST_SYSTEMTOOLS_SRC_FILE@"
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user