I have a strange output, related to the minimal CMakeLists.txt that I've 
provided with this email.
My CMake version is 3.2.1, on Windows Seven SP1, the tested generators are 
Visual Studio 10 2010 and Visual Studio 10 2010 Win64.

Here is the output I've got:

TestFolder/type

TestFolder
TestFolder/type
Configuring done

Is it normal? Or is it a bug?If it is normal, can someone explain me why it is?
                                          
cmake_minimum_required( VERSION 3.2 )

set( TEST_FOLDER type )
if ( ( ${TEST_FOLDER} STREQUAL "" ) OR ( ${TEST_FOLDER} STREQUAL " " ) )
  set( TEST_TMP_FOLDER "TestFolder" )
else ()
  set( TEST_TMP_FOLDER "TestFolder/${TEST_FOLDER}" )
endif ()
message( STATUS ${TEST_TMP_FOLDER} )



project( Test )



set( TEST_FOLDER type )
if ( ( ${TEST_FOLDER} STREQUAL "" ) OR ( ${TEST_FOLDER} STREQUAL " " ) )
  set( TEST_TMP_FOLDER "TestFolder" )
else ()
  set( TEST_TMP_FOLDER "TestFolder/${TEST_FOLDER}" )
endif ()
message( STATUS ${TEST_TMP_FOLDER} )

set( TEST_FOLDER type )
if ( ( "${TEST_FOLDER}" STREQUAL "" ) OR ( "${TEST_FOLDER}" STREQUAL " " ) )
  set( TEST_TMP_FOLDER "TestFolder" )
else ()
  set( TEST_TMP_FOLDER "TestFolder/${TEST_FOLDER}" )
endif ()
message( STATUS ${TEST_TMP_FOLDER} )
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to