diff options
author | Tushar Maheshwari <tushar27192@gmail.com> | 2019-08-27 06:49:43 (GMT) |
---|---|---|
committer | Tushar Maheshwari <tushar27192@gmail.com> | 2019-08-27 16:11:12 (GMT) |
commit | a40744c81a8d6dad994def5a63103fc229a75afc (patch) | |
tree | b6335dd49ba8acdc7aa2f246e89c89e1b8015578 /Source/cmGetSourceFilePropertyCommand.cxx | |
parent | 8cb3cffa42e11c2508ed8db703f2f9a1a73fbbb9 (diff) | |
download | CMake-a40744c81a8d6dad994def5a63103fc229a75afc.zip CMake-a40744c81a8d6dad994def5a63103fc229a75afc.tar.gz CMake-a40744c81a8d6dad994def5a63103fc229a75afc.tar.bz2 |
cmSourceFile: Move LANGUAGE to GetPropertyForUser
- Remove the special case from cmGetSourceFilePropertyCommand
Tests: check LANGUAGE for source file
- use target_sources to add file
- use get_property to read property value
Diffstat (limited to 'Source/cmGetSourceFilePropertyCommand.cxx')
-rw-r--r-- | Source/cmGetSourceFilePropertyCommand.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Source/cmGetSourceFilePropertyCommand.cxx b/Source/cmGetSourceFilePropertyCommand.cxx index 5a477b9..5c1c8a5 100644 --- a/Source/cmGetSourceFilePropertyCommand.cxx +++ b/Source/cmGetSourceFilePropertyCommand.cxx @@ -24,10 +24,6 @@ bool cmGetSourceFilePropertyCommand::InitialPass( sf = this->Makefile->CreateSource(file); } if (sf) { - if (args[2] == "LANGUAGE") { - this->Makefile->AddDefinition(var, sf->GetOrDetermineLanguage()); - return true; - } const char* prop = nullptr; if (!args[2].empty()) { prop = sf->GetPropertyForUser(args[2]); |