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)
|
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
|
SET(TEST_SYSTEMTOOLS_SRC_FILE
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/testSystemTools.cxx")
|
"${CMAKE_CURRENT_SOURCE_DIR}/testSystemTools.cxx")
|
||||||
CONFIGURE_FILE(
|
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;
|
bool res = true;
|
||||||
|
|
||||||
if (kwsys::SystemTools::DetectFileType(TEST_SYSTEMTOOLS_EXE_FILE) !=
|
if (kwsys::SystemTools::DetectFileType(TEST_SYSTEMTOOLS_BIN_FILE) !=
|
||||||
kwsys::SystemTools::FileTypeBinary)
|
kwsys::SystemTools::FileTypeBinary)
|
||||||
{
|
{
|
||||||
kwsys_ios::cerr
|
kwsys_ios::cerr
|
||||||
<< "Problem with DetectFileType - failed to detect type of: "
|
<< "Problem with DetectFileType - failed to detect type of: "
|
||||||
<< TEST_SYSTEMTOOLS_EXE_FILE << kwsys_ios::endl;
|
<< TEST_SYSTEMTOOLS_BIN_FILE << kwsys_ios::endl;
|
||||||
res = false;
|
res = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
#ifndef @KWSYS_NAMESPACE@_testSystemtools_h
|
#ifndef @KWSYS_NAMESPACE@_testSystemtools_h
|
||||||
#define @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@"
|
#define TEST_SYSTEMTOOLS_SRC_FILE "@TEST_SYSTEMTOOLS_SRC_FILE@"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user