Commit 2676a893 authored by Kasper Marstal's avatar Kasper Marstal
Browse files

Fix inline if/else statement in CMAKE_CACHE_ARGS

An if/else statement was given inline as an argument to
CMAKE_CACHE_ARGS for some CMake external projects. This
resulted in the following init cache entries on some systems:

  set(CMAKE_POSITION_INDEPENDENT_CODE "ON;if;(;tensorflow_
  	ENABLE_POSITION_INDEPENDENT_CODE;);else;(;)"
  	CACHE BOOL "Initial cache" FORCE)
  set(CMAKE_POSITION_INDEPENDENT_CODE "OFF;endif;(;)" CACHE
  	BOOL "Initial cache" FORCE)

This commit changes the inline if/else argument to
-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=
${tensorflow_ENABLE_POSITION_INDEPENDENT_CODE} which
is functionality equivalent.
parent 25d27528
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment