summaryrefslogtreecommitdiffstats
path: root/Tests/ObjectLibrary/A
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-07-02 18:40:59 (GMT)
committerBrad King <brad.king@kitware.com>2014-07-07 12:58:08 (GMT)
commit54bf5858cd4153f41a2414dbe8d1278268eccb58 (patch)
tree81f5e466652631241c55d8544f83a7f6fcd99071 /Tests/ObjectLibrary/A
parent61be345115b5f2c402286be7fa3e6df0c2f5f0ac (diff)
downloadCMake-54bf5858cd4153f41a2414dbe8d1278268eccb58.zip
CMake-54bf5858cd4153f41a2414dbe8d1278268eccb58.tar.gz
CMake-54bf5858cd4153f41a2414dbe8d1278268eccb58.tar.bz2
Tests: Resolve TODO comment left in ObjectLibrary test
We now have a generic way to add -fPIC without explicitly modifying CMAKE_C_FLAGS, so use it.
Diffstat (limited to 'Tests/ObjectLibrary/A')
-rw-r--r--Tests/ObjectLibrary/A/CMakeLists.txt5
1 files changed, 1 insertions, 4 deletions
diff --git a/Tests/ObjectLibrary/A/CMakeLists.txt b/Tests/ObjectLibrary/A/CMakeLists.txt
index 55778ea..1b40e8a 100644
--- a/Tests/ObjectLibrary/A/CMakeLists.txt
+++ b/Tests/ObjectLibrary/A/CMakeLists.txt
@@ -1,9 +1,6 @@
project(ObjectLibraryA C)
# Add -fPIC so objects can be used in shared libraries.
-# TODO: Need property for this.
-if(CMAKE_SHARED_LIBRARY_C_FLAGS AND NOT WATCOM)
- set(CMAKE_C_FLAGS "${CMAKE_SHARED_LIBRARY_C_FLAGS} ${CMAKE_C_FLAGS}")
-endif()
+set(CMAKE_POSITION_INDEPENDENT_CODE ON)
add_definitions(-DA_DEF)