On 18.06.2016 13:28, Alexander Shukaev wrote:
But they in fact do. How come?
I am not sure what facts you mean ... they don't:
cmake_policy(SET CMP0063 NEW)
cmake_policy(GET CMP0063 POLICY_VALUE_BEFORE)
cmake_minimum_required(VERSION 3.1.0)
cmake_policy(GET CMP0063 POLICY_VALUE_AFTER)
message("[${POLICY_VALUE_BEFORE}] [${POLICY_VALUE_AFTER}]")
file(WRITE foo.cpp "int main() {}")
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
add_executable(foo foo.cpp)
Expectedly outputs for me:
[NEW] []
(plus the policy warning since CMP0063 is in fact not set)
Nils
--
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