[CMake] string(RANDOM) bug?
Marcel Loose
loose at astron.nl
Thu Nov 5 08:41:05 EST 2009
Hi all,
I expected that string(RANDOM...) would produce a different string each
time it is invoked. Turns out that this string is only different between
different cmake runs. This is not what I expected. IMHO this is a bug,
either in the code, or in the documentation.
$ cat ../CMakeLists.txt
project(Dummy NONE)
cmake_minimum_required(VERSION 2.6)
string(RANDOM a)
string(RANDOM b)
message(STATUS "a=${a}")
message(STATUS "b=${b}")
$ cmake ..
-- a=PgDGb
-- b=PgDGb
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/loose/cmake/build
More information about the CMake
mailing list