cmake ExternalProject cache overwritten -
hello i'm facing problem regarding cmake , external projects.
i set compiler , flags via cmake_cache_args
and/or cmake_args
works first time run make
on subsequent call cmake cache of external project rebuild (deleted) , flags not set accordingly flags specified! wonder there workaround/way specify compiler once prevent rebuilding of cache?
following basic test project downloads , compiles gtest, first call make
compiles clang++ , given flags, following call make cause cmake cache rebuild without proper flags being set!
cmake_minimum_version_required(version 2.8.6) project(test) include(externalproject) externalproject_add( gtest svn_repository http://googletest.googlecode.com/svn/tags/release-1.7.0/ cmake_args -dcmake_cxx_compiler:string=clang++ -dcmake_cxx_flags:string="\"-std=c++1y -stdlib=libc++\"" install_command "" # 1 can not install gtest dont here log_download 1 log_update 1 log_configure 1 log_build 1 )
Comments
Post a Comment